Skip to content

Instantly share code, notes, and snippets.

@fecf
Created June 16, 2021 20:40
Show Gist options
  • Save fecf/ca86b541d47c064692bee22dc39304db to your computer and use it in GitHub Desktop.
Save fecf/ca86b541d47c064692bee22dc39304db to your computer and use it in GitHub Desktop.
winrm test
# Remote
Enable-PSRemoting -force
# Local
Set-Item wsman:\localhost\client\TrustedHosts -value *
Enter-PSSession -ComputerName 100.0.0.0 -Credential (Get-Credential -UserName a -Message "a")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment