PowerTip: Import All PowerShell Modules

PowerTip: Import All PowerShell Modules

  • Comments 6
  • Likes

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

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment