PowerTip: Use Get-Command to resolve PowerShell alias

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.

Comments (0)

Skip to main content