PowerTip: Use PowerShell to Unblock Files

Doctor Scripto

Dr Scripto

Summary: Use Windows PowerShell to unblock files downloaded from the Internet.

Hey, Scripting Guy! Question How can I use Windows PowerShell to unblock a script that I downloaded from the Scripting Guys Script Center Repository so that I can to use it?

Hey, Scripting Guy! Answer If you are sure you want to run the script, use the Unblock-File cmdlet:

Unblock-File -Path C:\fso\Register-FileToDelete.ps1

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment