IT Knowledge Base

Technical Repository

HowTo: Configure Windows Remote Management Service to allow HTTP and Basic Authentication

Run the following command to set the default WinRM configuration values.

winrm quickconfig

(Optional) Run the following command to check whether a listener is running, and verify the default ports.

winrm e winrm/config/listener

Enable basic authentication on the WinRM service.

Run the following command to check whether basic authentication is allowed.

winrm get winrm/config

Run the following command to enable basic authentication.

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

Run the following command to allow transfer of unencrypted data on the WinRM service.

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

Enable basic authentication on the WinRM client.

Run the following command to check whether basic authentication is allowed.

winrm get winrm/config

Run the following command to enable basic authentication.

winrm set winrm/config/client/auth @{Basic="true"}

Run the following command to 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"}
net stop winrm
net start winrm

Run the following command to test the connection to the WinRM service.

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



Leave a Reply