When memory is constrained on the service named winrm, a PowerShell task might fail to respond.


  1. Modify configuration for the service named winrm to set a higher value for MaxMemoryPerShellMB.

    The acceptable value is 2048.

  2. Run the following command:

    winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="2048"}'

  3. Verify the configuration by running the following command:

    winrm get winrm/config

  4. Restart the winrm service.