Applications Systems

AppInsight for IIS: Update WsMan limits

This article provides steps to update WsMan limits.

First published date

11/29/2018 10:53 PM

Last published date

6/25/2020 9:45 PM

Overview

This article provides steps to update WsMan limits. 

Product section

Server Application Monitor

Resolution

1. Download the PowerShell script

2. Execute the script. Right-click and apply the following parameters:

  • maxConcurrentUsersDefaultValue - Default value is 5
  • maxShellsPerUserDefaultValue - Default value is 5
  • maxMemoryPerShellMBDefaultValue - Default value is 150
  • serviceRestartRequired - Default value is $false


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

Outside of the script itself, you can find what the max shells per user # is by running the following in an Admin PS:

> cd WSMan:\localhost\Shell

> dir

To change that value, use this command:

PS> Set-Item .\MaxShellsPerUser 25

Disclaimer: Please note, any content posted here is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.  You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.