February 9th, 2016

PowerTip: Use Get-Command to resolve PowerShell alias

Doctor Scripto
Scripter

Summary: Learn how to use the Get-Command cmdlet to resolve an alias to a Windows PowerShell command.

Hey, Scripting Guy! Question How can I find if a Windows PowerShell command is an alias?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet, for example:

gcm gwmi

Notegcm is an alias for Get-Command.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.