winrm quickconfig
winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
If
you do not have permission to run those commands, run the following commands
instead:sc config "WinRM" start= auto
net start WinRM
winrm create winrm/config/listener?Address=*+Transport=HTTP
netsh firewall add portopening TCP 80 "Windows Remote Management"
netsh firewall add portopening TCP 5985 "Windows Remote Management"
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
If you use mutual authentication, you must manually exchange a key between the agent and the server. For more information about this option, see Configuring mutual authentication.
If you are using a high-availability environment, configure the agent for failover to the other servers in the cluster. See Configuring agents for failover.