OutOfMemory Exception on remote execution using Powershell Invoke-Command

后端 未结 3 1618
無奈伤痛
無奈伤痛 2021-01-11 17:18

I am trying to execute an exe on a remote computer using invoke-command. Executing the exe on the remote machine after logging into the machine using remote desktop takes 1G

3条回答
  •  無奈伤痛
    2021-01-11 18:10

    From:

    http://msdn.microsoft.com/en-us/library/windows/desktop/aa384372(v=vs.85).aspx

    The defult memory limit on remote shells is 150MB

    MaxMemoryPerShellMB Specifies the maximum amount of memory allocated per shell, including the shell's child processes. The default is 150 MB.

提交回复
热议问题