Forum Discussion
Looking for insight #1
Actually, it's crude, but you can actually dynamically pull a list of parameters and any aliases defined for them:
Get-Command -Name "Remove-Variable" | ForEach-Object { $_.Parameters.GetEnumerator() | ForEach-Object { $_.Value }| Select-Object -Property Name, Aliases }
You'd just change the name of the commandlet to whatever it is you're keen to look up the parameters for.
Cheers,
Lain
Thanks for the "crude". I don't suppose there is an alias for it??? ;-). :-P(I guess I could create my own.)
Being "old geezer" myself I agree. I find it slightly amusing that they created this very verbose language, which is great for self-documenting, but then got tired of all the typing so made alias a possibility. I am still on the "why is this so complicated" side of the learning curve, but I kind of get it. I am not good at typing, so I will never be a fan of PowerShell purity. I long for my days of UNIX. "cd, cat, ls, yacc, awk, …". (And I get the irony of how confusing things can be when you don't know what they mean. 🙂