{"id":11496,"date":"2026-11-25T01:00:51","date_gmt":"2026-11-25T01:00:51","guid":{"rendered":"https:\/\/cheapwindowsvps.com\/blog\/managing-powershell-modules-in-windows-how-to-install-update-and-remove-them\/"},"modified":"2026-11-25T01:00:51","modified_gmt":"2026-11-25T01:00:51","slug":"managing-powershell-modules-in-windows-how-to-install-update-and-remove-them","status":"publish","type":"post","link":"http:\/\/cheapwindowsvps.com\/blog\/managing-powershell-modules-in-windows-how-to-install-update-and-remove-them\/","title":{"rendered":"Managing PowerShell Modules in Windows: How to Install, Update, and Remove Them"},"content":{"rendered":"<p>PowerShell modules are collections of cmdlets for managing Windows components, server roles, cloud services, and other systems. You can install them from the <a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/www.powershellgallery.com\/\">PowerShell Gallery<\/a> or other repositories, then update or remove them as needed.<\/p>\n<h2>Manage PowerShell repositories<\/h2>\n<p>List the repositories registered on a computer:<\/p>\n<pre><code class=\"language-powershell\">Get-PSRepository<\/code><\/pre>\n<p>To add a repository hosted in a shared network folder:<\/p>\n<pre><code class=\"language-powershell\">Register-PSRepository -Name myCORPPSRepo `  -SourceLocation \\mun-man01PSRepo `  -InstallationPolicy Trusted<\/code><\/pre>\n<p>Remove a repository with:<\/p>\n<pre><code class=\"language-powershell\">Unregister-PSRepository myCORPPSRepo<\/code><\/pre>\n<p>The PowerShell Gallery is not trusted by default, so PowerShell may prompt you before installing a module from it. To mark it as trusted:<\/p>\n<pre><code class=\"language-powershell\">Set-PSRepository -Name PSGallery -InstallationPolicy Trusted<\/code><\/pre>\n<p>If the default gallery was removed, restore it with:<\/p>\n<pre><code class=\"language-powershell\">Register-PSRepository -Default<\/code><\/pre>\n<h2>Install modules from a repository<\/h2>\n<p>Search registered repositories for a module. For example:<\/p>\n<pre><code class=\"language-powershell\">Find-Module *BIOS*<\/code><\/pre>\n<p>Install a module by name:<\/p>\n<pre><code class=\"language-powershell\">Install-Module DellBIOSProvider<\/code><\/pre>\n<p>Useful options include:<\/p>\n<ul>\n<li><code>-Repository<\/code> to choose the source repository.<\/li>\n<li><code>-RequiredVersion<\/code> to specify a particular version.<\/li>\n<li><code>-Scope CurrentUser<\/code> to install for your account only; <code>-Scope AllUsers<\/code> installs for all users.<\/li>\n<li><code>-Force<\/code> to install without confirmation prompts.<\/li>\n<\/ul>\n<p>View third-party modules installed on the computer:<\/p>\n<pre><code class=\"language-powershell\">Get-InstalledModule<\/code><\/pre>\n<p>For additional details:<\/p>\n<pre><code class=\"language-powershell\">Get-InstalledModule |  Select Name, Version, PublishedDate, InstalledDate, InstalledLocation<\/code><\/pre>\n<p>Windows also includes built-in modules, commonly stored in <code>C:WindowsSystem32WindowsPowerShellv1.0Modules<\/code>. List all available modules with:<\/p>\n<pre><code class=\"language-powershell\">Get-Module -ListAvailable<\/code><\/pre>\n<p>Import a module into the current session:<\/p>\n<pre><code class=\"language-powershell\">Import-Module DellBIOSProvider<\/code><\/pre>\n<p>PowerShell can also load modules automatically when you first run one of their cmdlets. The <code>$env:PSModulePath<\/code> environment variable identifies the directories PowerShell searches for modules. Display its contents with:<\/p>\n<pre><code class=\"language-powershell\">$env:PSModulePath -split &quot;;&quot;<\/code><\/pre>\n<p>To see modules already loaded in the current session, run:<\/p>\n<pre><code class=\"language-powershell\">Get-Module<\/code><\/pre>\n<p>If a module cannot be loaded because script execution is disabled, review the machine\u2019s execution policy. One option for allowing locally created scripts and signed scripts from other sources is:<\/p>\n<pre><code class=\"language-powershell\">Set-ExecutionPolicy RemoteSigned<\/code><\/pre>\n<p>Check the commands provided by a module with:<\/p>\n<pre><code class=\"language-powershell\">Get-Command -Module DellBIOSProvider<\/code><\/pre>\n<p>Multiple versions of a module can be installed at once. List them with:<\/p>\n<pre><code class=\"language-powershell\">Get-Module PSWindowsUpdate -ListAvailable<\/code><\/pre>\n<h2>Install modules manually or offline<\/h2>\n<p>For computers without access to the online repository, save a module on an internet-connected computer:<\/p>\n<pre><code class=\"language-powershell\">Save-Module -Name PSWindowsUpdate -Path C:Temp<\/code><\/pre>\n<p>Copy the module folder to the offline computer\u2019s module directory. Alternatively, download its <code>.nupkg<\/code> package, place it in a local folder, and register that folder as a repository:<\/p>\n<pre><code class=\"language-powershell\">Register-PSRepository -Name myLocalPSRepo `  -SourceLocation C:PSRepo `  -InstallationPolicy TrustedInstall-Module PSWindowsUpdate -Repository myLocalPSRepo<\/code><\/pre>\n<p>See the guide to <a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/woshub.com\/install-powershell-module-offline\/\">installing PowerShell modules offline<\/a>.<\/p>\n<h2>Update modules<\/h2>\n<p>Update a specific module to the latest version in its repository:<\/p>\n<pre><code class=\"language-powershell\">Update-Module -Name PSWindowsUpdate<\/code><\/pre>\n<p>Update all installed modules:<\/p>\n<pre><code class=\"language-powershell\">Update-Module -Force<\/code><\/pre>\n<p>After an update, reload the module or restart the PowerShell session:<\/p>\n<pre><code class=\"language-powershell\">Import-Module -Name PSWindowsUpdate -Force<\/code><\/pre>\n<h2>Remove modules<\/h2>\n<p>Uninstall a module with:<\/p>\n<pre><code class=\"language-powershell\">Uninstall-Module -Name PSWindowsUpdate<\/code><\/pre>\n<p>If it is loaded in the current session, remove it from memory first:<\/p>\n<pre><code class=\"language-powershell\">Remove-Module -Name PSWindowsUpdateUninstall-Module -Name PSWindowsUpdate -Force<\/code><\/pre>\n<p>More details are available in this guide to <a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/woshub.com\/uninstall-powershell-modules\/\">removing PowerShell modules<\/a>.<\/p>\n<h2>Useful modules for administrators<\/h2>\n<p>Commonly used modules include:<\/p>\n<ul>\n<li><strong>NetSecurity<\/strong> \u2014 manage Windows Firewall rules.<\/li>\n<li><strong>ScheduledTasks<\/strong> \u2014 manage scheduled tasks.<\/li>\n<li><a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/woshub.com\/powershell-active-directory-module\/\"><strong>RSAT-AD-PowerShell<\/strong><\/a> \u2014 work with Active Directory.<\/li>\n<li><a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/woshub.com\/pswindowsupdate-module\/\"><strong>PSWindowsUpdate<\/strong><\/a> \u2014 manage Windows updates.<\/li>\n<li><strong>CredentialManager<\/strong> \u2014 work with Windows Credential Manager.<\/li>\n<li><strong>SimplySql<\/strong> \u2014 connect to databases such as MySQL, PostgreSQL, Oracle, SQL Server, and SQLite.<\/li>\n<li><strong>VMware.PowerCLI<\/strong> \u2014 administer VMware environments.<\/li>\n<li><a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/woshub.com\/using-winget-package-manager-windows\/\"><strong>WinGet<\/strong><\/a> \u2014 manage Windows software packages.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>PowerShell modules are collections of cmdlets for managing Windows components, server roles, cloud services, and other systems. You can install them from the PowerShell Gallery or other repositories,\u2026<\/p>\n","protected":false},"author":0,"featured_media":11497,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[],"class_list":["post-11496","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"_links":{"self":[{"href":"http:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/posts\/11496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"http:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/comments?post=11496"}],"version-history":[{"count":0,"href":"http:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/posts\/11496\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/media\/11497"}],"wp:attachment":[{"href":"http:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/media?parent=11496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/categories?post=11496"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/tags?post=11496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}