PowerTip: Use Get-Command to resolve PowerShell alias

Doctor Scripto

Dr Scripto

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.

0 comments

Comments are closed.