Created
April 13, 2018 03:41
-
-
Save jermdw/0024b056a4a24a7789fb365834c95414 to your computer and use it in GitHub Desktop.
Enable PSRemoting
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
# Perform on Client computer | |
Set-Item wsman:\localhost\Client\TrustedHosts -Value < destination host > -Concatenate | |
# Ensure WinRM is running on destination host | |
Test-WSMan <destHost> | |
# Connect | |
$cred = Get-Credential | |
Enter-PSSession -computername <computername> -Credential $cred |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment