Skip to content Skip to sidebar Skip to footer

Winrm - The Specified Credentials Were Rejected By The Server

I am unable to get WinRM session in a python script. Environment ad-dns.test.com - Windows 2012 AD and DNS Server box88.test.com - CentOS 7.2 : Kerberos, Python (Not joined

Solution 1:

Solved it finally, it was a permission issue and not invalid credentials as pointed out in logs. There are two solutions to this issue

  1. Add the domain user to the Domain Admins Group
  2. Execute winrm configSDDL default on the Windows server and check Read and Execute permissons like below

Windows_Server

Solution 2:

If you are using Basic authentication i.e. Local usernames , then you need to set it as True using the following commands in Powershell (As admin)

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

Post a Comment for "Winrm - The Specified Credentials Were Rejected By The Server"