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
- Add the domain user to the
Domain AdminsGroup - Execute
winrm configSDDL defaulton the Windows server and checkReadandExecutepermissons like below
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"