where.exe

Windows Command-Line Utility

System ToolSafeCommand-Line Tool
CPU Usage
1-3%
Memory
1-5 MB
Location
System32
Publisher
Microsoft Corporation

Quick Answer

where.exe is safe. It's Windows' built-in command used to locate files by name across PATH and specified roots.

Is it a Virus?
✔ NO - Safe
Must be in C:\Windows\System32\where.exe or C:\Windows\SysWOW64\where.exe on 64-bit systems
Warning
Potential script usage
Malicious software can masquerade as where.exe; verify location and signature
Can I Disable?
✔ NO
Not recommended; it's a core Windows utility used by scripts and installers

What is where.exe?

where.exe is the built-in Windows command-line utility that locates files by name across the system. It scans directories listed in the PATH and optional search roots, returning one or more full paths. It can perform simple and recursive searches, making it useful in scripting and troubleshooting.

This tool uses a multi-location search to find files matching a name, enabling quick discovery without opening File Explorer. It supports recursive searches and basic pattern matching on Windows.

Quick Fact: The where command has been part of Windows since early versions, allowing quick lookups across PATH and specified roots.

Types of Where.exe Operations

Is where.exe Safe?

Yes, where.exe is safe as a built-in Windows utility that does not require elevation and is part of the operating system.

Is where.exe a Virus or Malware?

The real where.exe is NOT a virus. Malware can masquerade as where.exe; always verify location and signature.

How to Tell if where.exe is Legitimate or Malware

  1. File Location: Must be in C:\Windows\System32\where.exe or C:\Windows\SysWOW64\where.exe. Any other location is suspicious.
  2. Digital Signature: Right-click where.exe in File Explorer -> Properties -> Digital Signatures. Should show "Microsoft Windows" as signer.
  3. Resource Usage: Should consume minimal CPU and memory when not actively used by a process.
  4. Behavior: Typically runs on demand via a command; should not create persistent background services.

Red Flags: If where.exe is located outside the Windows directories, lacks a valid signature, or launches unexpectedly in background, scan for malware.

Why Is where.exe Running on My PC?

where.exe runs when you or a script invoke the command to locate files; it may also be launched by installer or automated tasks as part of setup or validation.

Reasons it's running:

Can I Disable or Remove where.exe?

No It's a built-in Windows utility that is relied upon by scripts and installers; removing is not supported and can break system tools.

How to Stop where.exe from Running

How to Uninstall Windows Tools

Common Problems: Unexpected Results or Conflicts

If where.exe returns incorrect results or behaves oddly, consider how PATH order, search roots, and permissions affect its output.

Common Causes & Solutions

Quick Fixes:
1. Open Command Prompt or PowerShell and run: where notepad.exe to test basic lookup.
2. Use where /R C:\Users\Public \*.exe to locate executables recursively.
3. Call the system binary explicitly: C:\Windows\System32\where.exe *.dll
4. Redirect output to a file for auditing: where.exe *.exe > results.txt
5. Check PATH order: echo %PATH% or $Env:Path to see which directory shadows others

Frequently Asked Questions

What is where.exe?

Where.exe is the built-in Windows command that locates files by name across PATH and specified roots. It returns full paths to matching files.

Is where.exe safe to use?

Yes. It’s a legitimate Windows utility. Verify its location in C:\Windows\System32 and ensure it’s signed by Microsoft.

Where is where.exe located on Windows 10/11?

Typically at C:\Windows\System32\where.exe; on some 64-bit systems you may also see C:\Windows\SysWOW64\where.exe.

Can I use where.exe to search recursively?

Yes. Use the /R option, for example: where /R C:\ *.exe to search subdirectories for executables.

Does where.exe work from PowerShell?

Yes. You can call it directly from PowerShell or invoke the system binary path to avoid shell differences.

Can where.exe locate files outside of PATH?

Yes, by specifying a root directory to search, such as where /R C:\Users\Public *.txt

Related Processes