June 27th, 2015

PowerTip: Load All PowerShell Modules at Startup

Doctor Scripto
Scripter

Summary: Learn how to load all Windows PowerShell modules at startup.

Hey, Scripting Guy! Question How can I load all of my Windows PowerShell modules when I start the Windows PowerShell console?

Hey, Scripting Guy! Answer In your Windows PowerShell profile, use the Get-Module cmdlet and pipe the results to the 
           Import-Module cmdlet, for example:

Get-Module -ListAvailable | Import-Module

Category
Scripting

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback