Created
June 16, 2021 20:40
-
-
Save fecf/ca86b541d47c064692bee22dc39304db to your computer and use it in GitHub Desktop.
winrm test
This file contains 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
# 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