Useful WinRM Commands

Check for listeners
winrm enumerate winrm/config/listener

Check configuration
winrm get winrm/config

Setup WinRM using HTTPS
winrm qc -transport:https

Check whether basic authentication is allowed.

winrm get winrm/config

Enable basic authentication.

winrm set winrm/config/service/auth @{Basic=”true”}

Allow transfer of unencrypted data on the WinRM service.

winrm set winrm/config/service @{AllowUnencrypted=”true”}

Allow transfer of unencrypted data on the WinRM client.

winrm set winrm/config/client @{AllowUnencrypted=”true”}

If the WinRM host machine is in an external domain, run the following command to specify the trusted hosts.

winrm set winrm/config/client @{TrustedHosts=”host1, host2, host3″}

Test the connection to the WinRM service.

winrm identify -r:http://winrm_server:5985 -auth:basic -u:user_name -p:password -encoding:utf-8

This entry was posted in Windows and tagged , , . Bookmark the permalink.