Created
December 30, 2019 23:37
-
-
Save marcolussetti/48722bbbd0c918e55bbc68e0b80b5082 to your computer and use it in GitHub Desktop.
Test WinRM's basic Auth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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