Coding Ref

How to list all installed modules in PowerShell

How to list all installed modules in PowerShell

s To list all the modules that are installed on your system, you can use the Get-Module cmdlet in PowerShell.

For example, to list all the installed modules, you can use the following command:

Get-Module -ListAvailable

This will return a list of all the modules that are installed on your system, along with some basic information about each module, such as its name, version, and path.

If you want to see more detailed information about each module, you can use the Format-Table cmdlet to format the output as a table, and specify the properties that you want to include in the table.

For example, to list all the installed modules and show their names, versions, and paths, you could use the following command:

Get-Module -ListAvailable | Format-Table -Property Name,Version,Path

This would return a table with three columns: Name, Version, and Path. Each row in the table would represent a different installed module, and the values in the columns would be the name, version, and path of the corresponding module.

If you only want to see the names of the installed modules, without any other information, you can use the -Name parameter of the Get-Module cmdlet, like this:

Get-Module -ListAvailable -Name

This would return a list of the names of all the installed modules, without any other information.

You can also use the -FullyQualifiedName parameter of the Get-Module cmdlet to list the fully qualified names of the installed modules. This includes the module's name, version, and path, separated by a period.

For example:

Get-Module -ListAvailable -FullyQualifiedName

This would return a list of the fully qualified names of all the installed modules, such as MyModule.1.0.0.0, AnotherModule.2.1.0.0, etc.

Conclusion

To list all the modules that are installed on your system, you can use the Get-Module cmdlet in PowerShell.

You'll also like

Related tutorials curated for you

    What is IEX in PowerShell?

    What are verbs in PowerShell?

    How to Sign a PowerShell Script

    How to exclude multiple folders using Get-ChildItem in PowerShell

    What is null in PowerShell?

    How to unzip a file in Powershell

    How to pause in PowerShell

    String formatting in PowerShell

    Using -Or in PowerShell

    How to run a .bat file in PowerShell

    How to use SFTP in PowerShell

    What is PowerShell Grep?