Skip to content

Instantly share code, notes, and snippets.

@markwragg
Created January 13, 2017 13:58
Show Gist options
  • Save markwragg/06d0ffbd49d1ecef368592cbb68fcd86 to your computer and use it in GitHub Desktop.
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.
#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