PowerTip: Import All PowerShell Modules

The Scripting Guys

Dr Scripto

Summary: Learn to easily import all Windows PowerShell modules.

Hey, Scripting Guy! Question How can I import all Windows PowerShell modules into my current Windows PowerShell session?

Hey, Scripting Guy! Answer Use the Get-Module cmdlet with the –ListAvailable switch, and pipe the results to the Import-Module cmdlet:

Get-Module -ListAvailable | Import-Module

You can also use aliases:

gmo -l | ipmo

The Scripting Guys
Dr Scripto

Follow Dr Scripto   

No Comments.