Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andykuszyk/59a4b49870830ee69389fd0eca019917 to your computer and use it in GitHub Desktop.
Save andykuszyk/59a4b49870830ee69389fd0eca019917 to your computer and use it in GitHub Desktop.
Enable powershell remoting to a machine via IP address
winrm quickconfig
winrm s winrm/config/client '@{TrustedHosts="myservername.domain"}'
# To list the trusted hosts:
Get-Item WSMan:\localhost\Client\TrustedHosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment