Thursday, February 9, 2017

Bypass PowerShell Execution Policy to Run Scripts

There are a bunch of ways to get around PowerShell's execution policy. My favorite is to use cmd.exe to run powershell.exe with a flag to bypass the system's execution policy.

powershell.exe -ExecutionPolicy Bypass -File path\to\script.ps1

Yes, it really is that easy.

No comments:

Post a Comment