Set the maximum memory of a PowerShell remoting session

Hello,

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

Set-Item -Path wsman:\localhost\Shell\MaxMemoryPerShellMB -Value 200

You can check the modifications with :

Get-Item -Path wsman:\localhost\Shell\MaxMemoryPerShellMB

You can see all of the customisable value with :

Get-ChildItem -Path wsman:\localhost\Shell

WinRM-Shell-Conf

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

More informations.

2 thoughts on “Set the maximum memory of a PowerShell remoting session

Leave a Reply

Your email address will not be published. Required fields are marked *

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