Sunday, July 10, 2016

(Solved) The WinRM client cannot process the request. If the authentication scheme is different.

My title page contents

“ Enter-PSSession : Connecting to remote server x.x.x.x failed with the following error message : The WinRM client cannot process the request. If the authentication scheme is different from Kerberos, or if the client computer is not joined to a domain, then HTTPS transport must be
used or the destination machine must be added to the TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. You can get more information about that by running the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.”


Received this error when I try to initiate a powershell remote session with Nano Server. but saw that most of the time in Windows 2016 server also giving the same error.
To resolve this you can follow below mentioned steps.

First check whether your PC (or the PC which you are trying to initiate the session) have already enabled the WinRM service. For that you can run,

net start WinRM


Then you have to add your remote PC (Nano Server) in to the trusted host list in your local machine. For that you can run,

Set-Item WSMan:\localhost\Client\TrustedHosts -Value "IP address of the nano Server"
PS C:\WINDOWS\system32> Set-Item WSMan:\localhost\Client\TrustedHosts -Value ""


You will get the Security warning, Accept that.


Once you done with that, you should be able to connect in to your Nano Server environment remotely. Try PSSession command to initiate the session.

PS C:\WINDOWS\system32> Enter-PSSession -ComputerName "" -Credential administrator


No comments: