Check PowerShell Gallery Code

by Apr 12, 2016

In the previous tip we introduced the PowerShell Gallery and showed how to download content (scripts and modules).

Since the PowerShell Gallery is a public repository, and anyone can upload code, you should execise caution. Use Install-Module or Install-Script only if you know the author. Else, use Save-Module and Save-Script instead, and save the code to a neutral location for inspection. This way, you can review the code first without risking to accidentally invoke it.

Twitter This Tip! ReTweet this Tip!