Skip to content

ModuleMgmt

neztach edited this page Aug 31, 2023 · 1 revision
Code Explanation
Get-Command -Module PowerShellGet
Explore commands to manage PowerShell modules
Find-Module -Tag cloud
Find modules in the PowerShell Gallery with a "cloud" tag
Find-Module -Name ps*
Find modules in the PowerShell Gallery whose name starts with "PS"
Install-Module -Name NameIT -Scope CurrentUser -Force
Install a module to your personal directory (non-admin)
Install-Module -Name NameIT -Force
Install a module to your personal directory (admin / root)
Install-Module -Name NameIT -RequiredVersion 1.9.0
Install a specific version of a module
Uninstall-Module -Name NameIT
Uninstall module called "NameIT", only if it was installed via Install-Module
Register-PSRepository -Name <repo> -SourceLocation <uri>
Configure a private PowerShell module registry
Unregister-PSRepository -Name <repo>
Deregister a PowerShell Repository

Clone this wiki locally