Create a firewall rule

SolarWinds has created a PowerShell script to create a firewall rule. This can be found at:

https://support.solarwinds.com/?title=Success_Center/Server_%26_Application_Monitor_(SAM)/AppInsight_for_IIS:_Create_a_firewall_rule

Once downloaded, execute the script by right-clicking it and selecting, Run with PowerShell. The following parameters apply:

  • Without parameters: The rule is created with the default name, "Windows Remote Management HTTP/SSL" for port 5986.
  • With one parameter: Non-default custom port.
  • With two parameters: Non-default custom port and rule name

You can run this script with the default arguments from the PowerShell console or specify each one.

For example:

& '.\Add firewall rule.ps1' 5988 "My custom firewall rule name"

The default port for this rule is 5986 and does not need to be specified. Custom ports, as in the example above that uses port 5988, must be specified.