Last active
July 31, 2016 14:54
-
-
Save davops/3321329a6e4172ac744dedf3ff8297ba to your computer and use it in GitHub Desktop.
Set Powershell's Execution Policy for a remote computer when it is currently set to "RemoteSigned"
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
$thisPsSession = New-PSSession SERVER1 | |
Invoke-Command -Session $thisPsSession -ScriptBlock { | |
Set-ExecutionPolicy RemoteSigned | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment