---
title: "PowerShell 101: Finding and Installing New Modules"
description: "Learn how to find, install, verify and remove PowerShell modules efficiently. Master module management to enhance your PowerShell automation capabilities."
canonical: "https://adamtheautomator.com/powershell-module-management/"
---

# PowerShell 101: Finding and Installing New Modules

> Learn how to find, install, verify and remove PowerShell modules efficiently. Master module management to enhance your PowerShell automation capabilities.

Source: https://adamtheautomator.com/powershell-module-management/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![PowerShell 101: Finding and Installing New Modules](https://adamtheautomator.com/wp-content/uploads/2025/01/featured-image-3.webp)

# PowerShell 101: Finding and Installing New Modules

[![](https://secure.gravatar.com/avatar/d0b9d42e21e5622713f8b693aa5c0f9244d5f7dd200ed29b8398f52dee5de337?s=192&d=mm&r=g)Adam Bertram](https://adamtheautomator.com/author/adam-bertram/)20 January 20252 min. read

Categories: [IT Ops](/category/it-ops/)

Tags:[PowerShell](/tag/powershell/)

Table of Contents

*   [Searching for a Module in the PowerShell Gallery](#searching-for-a-module-in-the-powershell-gallery)
*   [Installing a Module](#installing-a-module)
*   [Verifying the Installed Module](#verifying-the-installed-module)
*   [Uninstalling a Module](#uninstalling-a-module)
*   [Conclusion](#conclusion)

Managing tasks in PowerShell often feels like magic—until you need missing functionality. Whether automating updates, managing user accounts, or accessing advanced features, you’ll quickly find that the built-in tools don’t cover everything. In such cases, you realize: _I need more modules, but where do I even start?_

By the end of this guide, you’ll have the skills to automate more tasks and keep your environment lean and efficient.

Dive in and become a PowerShell module pro!

## Searching for a Module in the PowerShell Gallery

Managing tasks in PowerShell often requires modules that aren’t built-in, so you’ll need to search for them. For example, if you’re managing Windows updates or automating complex tasks, the default PowerShell installation might not include the necessary tools.

If you’re unsure about the exact module name, start by using a wildcard search with `Find-Module`:

```powershell
Find-Module '*windowsupdate*'
```

This command lists modules matching the wildcard pattern.

Once you locate the desired module, refine the search by specifying the module name (i.e., `PSWindowsUpdate`):

```powershell
Find-Module -Name 'PSWindowsUpdate'
```

## Installing a Module

Finding a module is just the first step; the next is getting it onto your system. Modules in the PowerShell Gallery are like apps in an app store. You can quickly download and install them once you know what you’re looking for.

Download the module directly by piping the output of `Find-Module` to `Install-Module`:

```powershell
Find-Module -Name 'PSWindowsUpdate' | Install-Module
```

If you see a prompt about an untrusted repository, the reason is that PowerShell requires explicit confirmation. This behavior happens when downloading from repositories with an `Untrusted` installation policy.

To avoid repeated prompts, you can set the repository policy to `Trusted`:

```powershell
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
```

Re-run the install command:

```powershell
Find-Module -Name 'PSWindowsUpdate' | Install-Module
```

## Verifying the Installed Module

After installing a module, you’ll want to ensure it’s ready to use. However, that module might not install where you expect or require additional verification before use.

For instance, the `PSWindowsUpdate` module is installed on your user profile by default. If so, confirming its location before trying to execute its commands is critical.

To confirm where PowerShell installed the module, use:

```powershell
Get-Module -Name PSWindowsUpdate -ListAvailable | Select-Object ModuleBase
```

This command returns the location of the module on the filesystem. By default, modules are installed in your user profile’s _Documents_ folder.

To list all available commands within the module:

```powershell
Get-Command -Module PSWindowsUpdate
```

## Uninstalling a Module

Even the most valuable modules won’t be needed forever, like the `PSWindowsUpdate` module. After using this module to complete a script or manage updates, you may want to remove it to keep your system tidy or prevent unnecessary resource usage.

To remove a specific module:

```powershell
Uninstall-Module -Name PSWindowsUpdate
```

If the module is currently in use, PowerShell might prevent you from uninstalling it.

Check if the module is loaded:

```powershell
Get-Module PSWindowsUpdate
```

If loaded, unload it:

```powershell
Remove-Module PSWindowsUpdate
```

Now, re-attempt the uninstall:

```powershell
Uninstall-Module -Name PSWindowsUpdate
```

If the issue persists, close the current PowerShell session, reopen it and run the uninstall command again.

## Conclusion

Throughout this tutorial, you learned how to manage PowerShell modules effectively by leveraging the PowerShell Gallery. We began by searching for modules and moved on to installing them and uninstalling unwanted ones. You also encountered practical scenarios, such as resolving untrusted repository prompts and unloading active modules.

With these skills, you’re equipped to explore other modules in the PowerShell Gallery to enhance automation and solve challenges in your environment. For example, consider modules for managing Active Directory or Azure, or even experiment with creating custom modules to share with others.

By mastering module management, you unlock PowerShell’s full potential, enabling it to adapt to your unique administrative needs.

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Fpowershell-module-management%2F&text=PowerShell%20101%3A%20Finding%20and%20Installing%20New%20Modules)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Fpowershell-module-management%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Fpowershell-module-management%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2026/06/26995-troubleshoot-dns-issues-powershell-codex.webp)

### [Troubleshoot DNS Issues with PowerShell](/troubleshoot-dns-issues-powershell/)

Troubleshoot DNS issues with PowerShell by testing name resolution, DNS client settings, cache entries, and network connectivity in a repeatable workflow.

![](https://adamtheautomator.com/wp-content/uploads/2025/10/image_2025-10-24_095322075.png)

### [Migrating from PowerShell 6 to 7.5: Breaking Changes/New Features](/migrating-powershell-6-to-7-5/)

Migrate from PowerShell Core 6 to 7.5: breaking changes, features, and testing tips.

![](https://adamtheautomator.com/wp-content/uploads/2025/06/featured-image-6.png)

### [How to Add Timeouts to Pester Tests with PowerShell Runspaces](/pester-test-timeout-runspaces/)

Prevent Pester tests from hanging indefinitely using PowerShell runspaces. Learn to handle variable scoping, module loading, TestDrive access, and stream capture challenges with timeout protection.

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
