Question:
Looks like it’s not an alias.
get-alias alias
error: This command cannot find a matching alias because an alias with the name ‘alias’ does not exist.
and it’s not a command
get-command alias
error: The term ‘alias’ is not recognized as the name of a cmdlet, function, script file, or operable program.
Most probably alias
is an alias to get-alias
cmdlet, but where is it defined?
Answer:
For some reason, you can omit the get-
from a get-xxxx
cmdlet in PowerShell and it will add the get-
for you.
For instance, you can type hotfix
instead of get-hotfix