Modules are collections of cmdlets that are stored in the path %WINDIR%\System32\WindowsPowerShell\.

Get a List of Windows PowerShell Modules

You can execute the following command to display the location of each directory where these modules are exactly stored at your computer:

write-host "$PSModulePath"

You can get a list of all available modules on your computer by executing the following command:

Get-Module -ListAvailable

There are few modules loaded for basic management tasks. To check which modules are loaded into PowerShell, execute the following command:

Get-Module -All

You can load a particular module by executing the following command:

Import-Module -Name ModuleName

To list commands in a particular module, execute the following command:

Get-Command -Module ModuleName
How to Get a List of Windows PowerShell Modules that can be Imported
Avatar

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

One thought on “How to Get a List of Windows PowerShell Modules that can be Imported

  • Avatar
    February 21, 2019 at 2:02 pm
    Permalink

    to import modules permanently you can copy them creating a folder on C:\Windows\system32\WindowsPowerShell\v1.0\Modules\DCOMPermissions with the name of your script, then inside you can put all your psm1 or ps1 files.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*