how to set trusted host

ussnorway

Windows Forum Team
Staff member
Premium Supporter
#1
Just a heads up, I run into an issue after the lastest patch stopped my hyper-v server from talking to my laptop... it appears that the basic
Code:
winrm set winrm/config/client '@{TrustedHosts="THE_NAME_OF_THE_SERVER"}'
no longer works and I had to go around it using
Code:
Get-Item WSMan:\localhost\Client\TrustedHosts
to see what host is trusted and
Code:
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "name-of-host"
to set a new trusted hosts
... you of course still need to use an admin powershell...

note: that you will need to turn the Winrm service on before you can apply these codes but once you have your server set to be trusted then go ahead and turn that service back off... it's not actualy needed to manage a hyper-v by remote.
 


#2
Thanks for the reply.
Trying it now
 


Last edited:
This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.