Created
January 13, 2017 13:58
-
-
Save markwragg/06d0ffbd49d1ecef368592cbb68fcd86 to your computer and use it in GitHub Desktop.
Was curious about how to find the aliases of parameters in Powershell. Turns out also get-help -full and get-help -parameter shows them from PS3 onwards.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Adapted from here http://mikefrobbins.com/2012/08/30/finding-aliases-for-powershell-cmdlet-parameters/ | |
(get-command *).parameters.values | select name,aliases | sort aliases -unique | sort name | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment