Saravana
Saravana

Reputation: 40594

How to run a command with the same name as a PowerShell alias?

I have a few command line utilities that have the same name as PowerShell aliases. For example where (alias for Where-Object) shadows the where tool that comes with Windows.

In bash I can skip aliases using \ or command like \where or command where. Is there something similar in PowerShell?

Upvotes: 0

Views: 471

Answers (1)

wasif
wasif

Reputation: 15478

You can add the extension when invoking:

& where.exe "arguments"

Or specify the full path.

See About_Command_Precedence

Upvotes: 3

Related Questions