Update WSMan limits for AppInsight for IIS
The WSMan provider for Windows PowerShell lets you add, change, clear, and delete WS-Management configuration data on local or remote computers. SolarWinds provides a PowerShell script to update the WSMan limits suitable for AppInsight for IIS, available for download here.
To execute the script, right-click and select Run with PowerShell.
The following parameters apply:
maxConcurrentUsersDefaultValue
- Default value is5
maxShellsPerUserDefaultValue
- Default value is5
maxMemoryPerShellMBDefaultValue
- Default value is150
serviceRestartRequired
- Default value is$false
You can run this script with the default arguments from the PowerShell console or specify each one.
For example:
& '.\Update WsMan Limits.ps1'
Additional helpful commands include:
- To view the WinRM configuration, use
winrm get winrm/config
- To view WinRM HTTPS Listener settings, use
winrm get winrm/config/listener?Address=*+Transport=HTTPS
- To check if the server is listening to port 5986, use
netstat -an | findstr "5986"
- To remove WinRM HTTPS Listener settings, use
winrm delete winrm/config/listener?Address=*+Transport=HTTPS
See also Create a self-signed certificate for AppInsight for IIS.
Disclaimer: Your organization should internally review and assess to what extent PowerShell is incorporated into your environment. This is especially important when importing scripts from third parties, including content posted by other customers in the SolarWinds online IT community, THWACK. To learn more, see PowerShell security considerations.