Tuesday, November 8, 2016

Get PowerShell scripts from PowerShell Gallery

For those of you scripting with PowerShell, in the past it has typically been very difficult to find PowerShell scripts that you can use for your own purposes.  You would usually have to scavenge and scour the Internet for numerous blog posts and discussion forums before perhaps finding the PowerShell script that you can actually use!

Well, Microsoft has decided to reduce the pain of searching for PowerShell scripts in the future by introducing PowerShell Gallery: https://www.powershellgallery.com/

From within PowerShell, just like .NET developers use NuGet today, PowerShell allows you to get PowerShell scripts from the PowerShell gallery.

You can browse the PowerShell scripts in the PowerShell gallery here: https://www.powershellgallery.com/items

Once you have found the appropriate PowerShell script, cmdlet etc. that you want to use, you simply either run Install-Module or Install-Script to install your respective PowerShell Module or PowerShell script!  For more information on using the PowerShell Gallery, you can check out this article here: https://msdn.microsoft.com/powershell/gallery/psgallery/psgallery_gettingstarted 

No comments:

Post a Comment