Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Import Specific Cmdlets from a Module

$
0
0

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.

 


Viewing all articles
Browse latest Browse all 3333

Trending Articles