Set the maximum memory of a PowerShell remoting session


You can modify the maximum memory of WinRM shells with that :

Set-Item -Path wsman:localhostShellMaxMemoryPerShellMB -Value 200

You can check the modifications with :

Get-Item -Path wsman:localhostShellMaxMemoryPerShellMB

You can see all of the customisable value with :

Get-ChildItem -Path wsman:localhostShell


As you can see, you are able to modify : AllowRemoteShellAccess, IdleTimeout, MaxConcurrentUsers, MaxShellRunTime, MaxProcessesPerShell, MaxMemoryPerShellMB, MaxShellsPerUser.

More informations.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.