This article applies as of PRTG 22



Remote PowerShell sensors gives errors like The WSMan provider host process did not return a proper response. Disabling Remote PowerShell memory limitation in PRTG: Resolving errors and ensuring adequate memory allocation for sensors


Increasing the memory limit for Remote PowerShell

There are various sensor types for which you have to enable Remote PowerShell to monitor the target devices. By default, a remote shell is allocated a maximum of 150 MB memory. This might be insufficient in larger network environments with, for example, several Hyper-V hosts and dozens of virtual machines.


Remote PowerShell sensors might show the following error message if too little memory is available:

The WSMan provider host process did not return a proper response


In this case, increase the memory limitation of 150 MB to 1 GB. Use the following command to increase the memory allocation limit for Remote PowerShell:

Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 1024

Sensors that use Remote PowerShell will not fail anymore because of the above mentioned memory limit.


More