There are numerous scenarios that can cause an authentication problem, such 
as;

   - The credentials you are using are actually incorrect, or you haven't 
   specified the password in Ansible correctly
   - The account is disabled or locked on the Windows host
   - If using Basic auth (you are), you need to enable Basic auth on the 
   server, "Set-Item -Path WSMan:\localhost\Service\Auth\Basic -Value $true"
   - The account does not have rights to log on through the network, 
   
https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/access-this-computer-from-the-network
   - The account is not part of the local Administrators group, or if a non 
   admin account you haven't given it permission
   - You are using a domain account over Basic auth, use Kerberos 
   (preferably) or NTLM/CredSSP
   - You are using Basic auth over HTTP, this is not encrypted and Windows 
   will reject the process (I see this isn't your case as you are running over 
   HTTPS)
   - The LocalAccountTokenFilterPolicy is not set to 1 (only for local 
   admin accounts that is not the BUILTIN\Administrator account), 
   
https://support.microsoft.com/en-us/help/951016/description-of-user-account-control-and-remote-restrictions-in-windows

Thanks

Jordan

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9bf84bcc-694e-49ce-bd13-733b2c1f36eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to