WinRM을 통한 명령 수행 시 필요 작업

1. Environment

OS : Windows Server 

2. Symptoms

MDRM에서 WinRM을 통한 명령 수행 시 Windows서버에서 하단 작업이 필요. 

3. Cause 

Win 2008 R2 이상 버전 winrm quickconfig -qwinrm set winrm/config/winrs @{MaxMemoryPerShellMB=”500″}winrm set winrm/config @{MaxTimeoutms=”1800000″}winrm set winrm/config/service @{AllowUnencrypted=”true”}winrm set winrm/config/service/auth @{Basic=”true”}winrm set winrm/config/client/auth @{Basic=”true”} ======================================================================== Win 2008 R2 이하 버전 winrm quickconfig -qwinrm set winrm/config/winrs @{MaxMemoryPerShellMB=”500″}winrm set winrm/config @{MaxTimeoutms=”1800000″}winrm set winrm/config/service @{AllowUnencrypted=”true”}winrm set winrm/config/service/auth @{Basic=”true”}winrm set winrm/config/Listener?Address=*+Transport=HTTP @{Port=”5985″}