Add new key pairs or use login with password instead.
Password-based login is generally not recommended and should be limited to development and legacy systems. Make sure you have a sufficiently complex password configured.
Use login with public key instead.
Show Description Hide Description
Run the default WinRM configuration.
c:\> winrm quickconfig
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