Skip to content

Instantly share code, notes, and snippets.

@AlainODea
Created March 23, 2018 01:42
Show Gist options
  • Save AlainODea/539f0123b7f862a057b27b528f7dfc79 to your computer and use it in GitHub Desktop.
Save AlainODea/539f0123b7f862a057b27b528f7dfc79 to your computer and use it in GitHub Desktop.
Run Unsigned PowerShell (human in the loop)
$Script = [System.IO.Path]::GetTempFileName()
(New-Object System.Net.WebClient).DownloadFile("https://path/to/your/script.ps1", $Script)
Get-Content $Script | clip.exe
# right click to run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment