Run the default WinRM configuration.
Verify whether a listener is running, and which ports are used. The default ports are 5985 for HTTP, and 5986 for HTTPS.
c:\> winrm e winrm/config/listener
Enable basic authentication on the WinRM service. Run the following command to check whether basic authentication is allowed.
c:\> winrm get winrm/config
Run the following command to enable basic authentication on the WinRM service.
c:\> winrm set winrm/config/service/auth @{Basic="true"}
Run the following command to allow transfer of unencrypted data on the WinRM service.
c:\> winrm set winrm/config/service @{AllowUnencrypted="true"}
Run the following command to test the connection to the WinRM service.
c:\> winrm identify -r:http://winrm_server:5985 -auth:basic -u:user_name -p:password -encoding:utf-8