tree.exe

Windows Directory Tree Utility

System ToolSafeSystem Utility
CPU Usage
1-5%
Memory
2-8 MB
Location
C:\Windows\System32
Publisher
Microsoft Corporation

Quick Answer

tree.exe is safe. It's Windows' built-in directory tree utility invoked by the command prompt to display folder structures; generally harmless when used as intended from the OS.

Is it a Virus?
✔ NO - Safe
Located in C:\Windows\System32\tree.exe or C:\Windows\SysWOW64\tree.exe
Warning
Multiple instances may occur if invoked by scripts
Only if invoked by batch/script — review startup tasks and automation
Can I Disable?
✔ YES
Tree is a command-line utility; you can avoid calling it, e.g., disable scripts that run it

What is tree.exe?

tree.exe is the Windows Directory Tree Utility, a lightweight command-line tool that prints a visual ASCII tree of folders and files starting from a specified path. It’s typically invoked from the Command Prompt or batch scripts to quickly reveal the folder structure without opening each directory.

It enumerates directories using Win32 API calls and prints a text-based tree. It runs in the foreground, does not preload data, and relies on path enumeration to render the hierarchical layout of folders and files under a given root.

Quick Fact: The Windows tree utility predates modern GUIs and is commonly used in scripts to visualize directory structures.

Types of Tree Processes

Is tree.exe Safe?

Yes, tree.exe is safe when it's the legitimate Windows binary located in C:\Windows\System32\ or C:\Windows\SysWOW64 and signed by Microsoft.

Is tree.exe a Virus or Malware?

The legitimate tree.exe is not a virus. However, malware can masquerade as tree.exe in user folders. Always verify the path and signature.

How to Tell if tree.exe is Legitimate or Malware

  1. File Location: Must be in C:\Windows\System32\tree.exe or C:\Windows\SysWOW64\tree.exe. Any tree.exe elsewhere is suspicious.
  2. Digital Signature: Right-click C:\Windows\System32\tree.exe -> Properties -> Digital Signatures. Should show a Microsoft-signed publisher such as "Microsoft Windows" or "Microsoft Corporation".
  3. Version & Publisher: Check version information: use PowerShell: (Get-Item 'C:\Windows\System32\tree.exe').VersionInfo.FileVersion to verify a legitimate build.
  4. Resource Usage: Normal usage is minimal. If tree.exe uses high CPU when idle, inspect for rogue scripts or malware.

Red Flags: If tree.exe is located outside the Windows directory, lacks a valid signature, or runs unexpectedly, scan with your antivirus. Be wary of similarly named files in user folders.

Why Is tree.exe Running on My PC?

tree.exe runs when you explicitly list directories or when a script or tool calls it. It can also run as part of maintenance tasks or admin tooling.

Reasons it's running:

Can I Disable or Remove tree.exe?

Not easily removed as it's a built-in Windows utility; you can avoid calling it or restrict usage via policy.

How to Stop tree.exe

How to Uninstall Tree

Common Problems: Unexpected Behavior with tree.exe

If tree.exe misbehaves, here are common problems and practical fixes.

Common Causes & Solutions

Quick Fixes:
1. Open Command Prompt and run: tree.exe C:\Users
2. Redirect output: tree.exe C:\Users > tree_output.txt
3. Use ASCII: tree.exe C:\Users /A > tree_ascii.txt
4. Check for malware: run Defender full scan
5. Review scripts for calls to tree.exe and remove or modify

Frequently Asked Questions

What is tree.exe and what does it do?

tree.exe is the Windows Directory Tree Utility. It prints a visual ASCII tree of folders and files starting from a chosen root, typically run from CMD or PowerShell.

Is tree.exe safe to run?

Yes, the legitimate tree.exe located in C:\Windows\System32 (or SysWOW64 on 64-bit systems) is safe when signed by Microsoft. Verify the signature if in doubt.

How do I use tree.exe to list a folder?

Open Command Prompt and run: tree.exe C:\PathToList. Add /A for ASCII output and /F to show files.

Why do I see 'Access is denied' when running tree.exe?

Lack of permissions on one or more folders can cause denial. Run with elevated privileges or target folders you can read.

Can I uninstall tree.exe or disable its usage?

Tree is a built-in Windows utility and cannot be uninstalled. You can disable its usage by removing scripts that call it or blocking the binary via policy.

Why are there multiple tree.exe processes?

If invoked repeatedly by scripts or tasks, or if a script launches it in parallel, you may see more than one instance.

Related Processes