{"id":3297,"date":"2013-07-01T11:59:00","date_gmt":"2013-07-01T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2013\/07\/01\/powertip-import-specific-cmdlets-from-a-module\/"},"modified":"2013-07-01T11:59:00","modified_gmt":"2013-07-01T11:59:00","slug":"powertip-import-specific-cmdlets-from-a-module","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-import-specific-cmdlets-from-a-module\/","title":{"rendered":"PowerTip: Import Specific Cmdlets from a Module"},"content":{"rendered":"<p><strong style=\"font-size: 12px\">Summary<\/strong><span style=\"font-size: 12px\">: Selectively import specific cmdlets when you import a module.<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Question\" \/>&nbsp;How can I import only cmdlets that use the verb&nbsp;<strong>Get<\/strong>&nbsp;from the PSCX module?<\/p>\n<p style=\"padding-left: 60px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\" \/>&nbsp;Call the&nbsp;<strong>Import-Module<\/strong>&nbsp;cmdlet, specify the cmdlet parameter, and use a filter to get only cmdlets with the verb&nbsp;<strong>Get&nbsp;<\/strong>(<strong>ipmo<\/strong>&nbsp;is an alias for&nbsp;<strong>Import-Module<\/strong>):<\/p>\n<p style=\"padding-left: 150px\">ipmo -Cmdlet get* -Name pscx<\/p>\n<p style=\"padding-left: 60px\"><strong>Note<\/strong>&nbsp;&nbsp;&nbsp;For more information about the PSCX module, see&nbsp;<a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2011\/07\/18\/install-the-pscx-and-80-new-cmdlets-to-ease-powershell-use.aspx\">Install the PSCX and 80 New Cmdlets to Ease PowerShell Use<\/a>.<\/p>\n<p align=\"left\">&nbsp;<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\" alt=\"\" border=\"0\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Selectively import specific cmdlets when you import a module. &nbsp;How can I import only cmdlets that use the verb&nbsp;Get&nbsp;from the PSCX module? &nbsp;Call the&nbsp;Import-Module&nbsp;cmdlet, specify the cmdlet parameter, and use a filter to get only cmdlets with the verb&nbsp;Get&nbsp;(ipmo&nbsp;is an alias for&nbsp;Import-Module): ipmo -Cmdlet get* -Name pscx Note&nbsp;&nbsp;&nbsp;For more information about the PSCX module, [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[356,3,45],"class_list":["post-3297","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-powertip","tag-scripting-guy","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Selectively import specific cmdlets when you import a module. &nbsp;How can I import only cmdlets that use the verb&nbsp;Get&nbsp;from the PSCX module? &nbsp;Call the&nbsp;Import-Module&nbsp;cmdlet, specify the cmdlet parameter, and use a filter to get only cmdlets with the verb&nbsp;Get&nbsp;(ipmo&nbsp;is an alias for&nbsp;Import-Module): ipmo -Cmdlet get* -Name pscx Note&nbsp;&nbsp;&nbsp;For more information about the PSCX module, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/3297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=3297"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/3297\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=3297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=3297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=3297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}