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: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

WinRM-Shell-Conf

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

More informations.

Leave a Reply