简体   繁体   中英

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?

You can add the extension when invoking:

& where.exe "arguments"

Or specify the full path.

See About_Command_Precedence

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM