Unblock-File
noun
say it: “un-BLOK FYL” /ʌnˈblɑk ˈfaɪl/
A PowerShell command that marks a downloaded file as trusted, so a script from the internet can run.
What does Unblock-File do?
Unblock-File takes the mark of the web off a downloaded file: the label that makes the RemoteSigned policy refuse a script unless it's signed. Read the script first, because unblocking says you trust it.
Get-Content .\rename-photos.ps1 # read it first
Unblock-File .\rename-photos.ps1
In a sentence
- “Unblock-File took away the From the internet label.”
- “After reading the script, Sam used Unblock-File so it would run.”
Level: Apprentice · More PowerShell terms at this level
Updated