Package management
PowerShell Package Management allows you to find, install, update and uninstall PowerShell Modules and other packages.
PowerShellGallery.com is the default source for PowerShell modules. You can also browse the site for available packages, command and preview the code.
Find a PowerShell module using a pattern
Section titled “Find a PowerShell module using a pattern”To find a module that ends with DSC
Find-Module -Name *DSCCreate the default PowerShell Module Reposity
Section titled “Create the default PowerShell Module Reposity”If for some reason, the default PowerShell module repository PSGallery gets removed. You will need to create it. This is the command.
Register-PSRepository -DefaultFind a module by name
Section titled “Find a module by name”Find-Module -Name <Name>Install a Module by name
Section titled “Install a Module by name”Install-Module -Name <name>Uninstall a module my name and version
Section titled “Uninstall a module my name and version”Uninstall-Module -Name <Name> -RequiredVersion <Version>Update a module by name
Section titled “Update a module by name”Update-Module -Name <Name>