Skip to content

Instantly share code, notes, and snippets.

@jermdw
Created April 13, 2018 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jermdw/0024b056a4a24a7789fb365834c95414 to your computer and use it in GitHub Desktop.
Save jermdw/0024b056a4a24a7789fb365834c95414 to your computer and use it in GitHub Desktop.
Enable PSRemoting
# 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