Skip to content

Instantly share code, notes, and snippets.

@WestonThayer
Created November 5, 2025 18:00
Show Gist options
  • Select an option

  • Save WestonThayer/d61dae204be0b52e292de9e57eead750 to your computer and use it in GitHub Desktop.

Select an option

Save WestonThayer/d61dae204be0b52e292de9e57eead750 to your computer and use it in GitHub Desktop.

If you need to test with WinRM in a very basic way....

On both the client and server, run winrm quickconfig. Use Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private if necessary to get clean results.

Then on the server, run winrm set winrm/config/service/auth '@{Basic="true"}' to allow very basic auth. Make sure the current server user has a password.

On the client, use Set-Item WSMan:\localhost\Client\TrustedHosts -Value IP -Force.

Then make sure, if the server is behind a firewall, that TCP 5986-5986 is allowed through.

Finally, from the client Enter-PSSession -ComputerName IP -Credential user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment