Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Unblock Files in Folder

$
0
0

Summary: Learn how to use Windows PowerShell to unblock files downloaded from the Internet.

Hey, Scripting Guy! Question I downloaded a module from the Script Center Repository, and when I expanded and copied the files to
           my modules folder, I forgot to unblock them. Now every time I start Windows PowerShell, I get error
           messages and the modules don’t work. How can I easily fix this situation?

Hey, Scripting Guy! Answer Use the Get-ChildItem cmdlet to return a list of all files in your modules directory, and pipe them to
           the Unblock-File cmdlet, for example:

Get-ChildItem -Path 'C:\Program Files\WindowsPowerShell\Modules\' -Recurse | Unblock-File


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>