PowerTip: Import All PowerShell Modules

Doctor Scripto

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

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   


    Leave a comment