Cannot enable WinRM remoting on Windows 10 Home Edition

While trying to enable PowerShell removing on Windows 10 Home Edition following error displayed:

192.168.169.76 | UNREACHABLE! => {
“changed”: false,
“msg”: “ssl: the specified credentials were rejected by the server”,
“unreachable”: true
}

The ‘/etc/ansible/hosts’ and ‘group_vars’ have correct entries.

Any suggestions?

Dinesh Vashisht

double check the password is correct - that error implies the username/password combination doesn’t exist or is incorrect on the windows hosts.

Check here -
https://github.com/ansible/ansible/issues/16478

As others have pointed out, WinRM is enabled but it is rejecting the user you are trying to connect with. This can be due to numerous reasons but here are the most common ones

  • The username or password is incorrect
  • Basic auth is not enabled on the WinRM side, need to run Set-Item -Path WSMan:\localhost\Service\Auth\Basic -Value $true
  • The account is not an administrator or does not have permission on the WinRM endpoint, see the post above for how to configure this
  • The account has not been granted the SeNetworkLogonRight https://technet.microsoft.com/en-us/library/dd277311.aspx?f=255&MSPPError=-2147217396, if the user is an admin then by default it should
  • You are connecting over http but don’t have message encryption, this won’t be the case as you are running over HTTPS
  • Using a domain account over basic auth, I see you are using SSL (basic over TLS) and are on the home edition so this won’t be it

Without more detail from yourself, such as the account you are trying to connect with, the output of winrm get winrm/config/service and your group_vars set (sans the password) there is not too much we can do.

Thanks

Jordan

Thanks J Hawkesworth,

After correcting the username it worked.

192.168.169.76 | SUCCESS => {
“changed”: false,
“ping”: “pong”
}

Regards,
Dinesh Vashisht