Created
June 3, 2019 07:06
-
-
Save raultm/dc69bfb79458137244487b5e39da3372 to your computer and use it in GitHub Desktop.
Execute ps1 script in Powershell Terminal with privileges
This file contains hidden or 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
Set-ExecutionPolicy Unrestricted -Force; iex ((New-Object System.Net.WebClient).DownloadString('http://server/path/to/script.ps1')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment