Skip to content

Instantly share code, notes, and snippets.

@marcolussetti
Created December 30, 2019 23:37
Show Gist options
  • Save marcolussetti/48722bbbd0c918e55bbc68e0b80b5082 to your computer and use it in GitHub Desktop.
Save marcolussetti/48722bbbd0c918e55bbc68e0b80b5082 to your computer and use it in GitHub Desktop.
Test WinRM's basic Auth
Enter-PSSession -ComputerName <HOST> -UseSSL -port 5986 -Authentication Basic -Credential (New-Object System.Management.Automation.PSCredential("Administrator", (ConvertTo-SecureString "<PASSWORD>" -AsPlainText -Force))) -SessionOption (New-PSSessionOption -SkipCACheck)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment