Skip to content

Instantly share code, notes, and snippets.

@raultm
Created June 3, 2019 07:06
Show Gist options
  • Save raultm/dc69bfb79458137244487b5e39da3372 to your computer and use it in GitHub Desktop.
Save raultm/dc69bfb79458137244487b5e39da3372 to your computer and use it in GitHub Desktop.
Execute ps1 script in Powershell Terminal with privileges
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