Skip to content

Instantly share code, notes, and snippets.

@pavank
Last active January 27, 2017 13:41
Show Gist options
  • Save pavank/9481e6addca8c92801b4 to your computer and use it in GitHub Desktop.
Save pavank/9481e6addca8c92801b4 to your computer and use it in GitHub Desktop.
WinRM Trusted Hosts
#List existing Hosts
ls WSMan:\localhost\Client\TrustedHosts
#Add new Host
winrm set winrm/config/client '@{TrustedHosts="HostName"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment