Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 17778

PowerTip: Find Aliases Exported by PowerShell Module

$
0
0

Summary: Find aliases that were exported from a Windows PowerShell module.

Hey, Scripting Guy! Question How can I find aliases that were exported from a particular module on my system?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet, specify the module, pipe the results to the 
         Foreach-Object cmdlet, and then look for aliases:

Get-Command -Module CimCmdlets | foreach { Get-Alias -Definition $_.name -ea 0 }


Viewing all articles
Browse latest Browse all 17778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>