PowerTip: Import Specific Cmdlets from a Module

Doctor Scripto

Summary: Selectively import specific cmdlets when you import a module.

Hey, Scripting Guy! Question How can I import only cmdlets that use the verb Get from the PSCX module?

Hey, Scripting Guy! Answer Call the Import-Module cmdlet, specify the cmdlet parameter, and use a filter to get only cmdlets with the verb Get (ipmo is an alias for Import-Module):

ipmo -Cmdlet get* -Name pscx

Note   For more information about the PSCX module, see Install the PSCX and 80 New Cmdlets to Ease PowerShell Use.

 

0 comments

Discussion is closed.

Feedback usabilla icon