SFTP Agent Automation Script -- IIS -- agentConfCreator.ps1

Document created by Joe Gumke on Nov 22, 2016Last modified by Joe Gumke on Nov 28, 2016
Version 2Show Document
  • View in full screen mode

Updated : Added another script that you can run directly on the IIS box and it will spit out the sftpagent.conf file automatically, thats needed for the rsa sftpagent to pull the configured IIS sites.


For customers that leverage several RSA sftpagents out in the wild, I wrote a powershell script to automate the process updating these configuration files for IIS. You can modify this for other types of event sources, but will help automate the IIS collections of websites.

You need to add a newline delimited hostfile located on your system, which will be populated with website directories that you want the sftpagent to consume.

The following are required arguments that you need to populate to get agent to run

hostlist == newline delimited list of website directories located on the remote server to consume by agent

serverName = remote server name that agent will run on

loggingHost = remote collector consuming events


You can always run get-help agentConfCreator.ps1