Create a firewall rule
SolarWinds has created a PowerShell script to create a firewall rule. This can be found at:
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.
& '.\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.