Guide

How to find programs running from strange folders on Windows

Published

A dark Windows PowerShell window listing running programs and their folder paths

Short answerRun Get-Process filtered to paths outside Windows and Program Files to see every running program from unusual folders. Apps like Discord and VS Code in AppData are normal; a Windows name such as svchost in the wrong folder is not.

Most real software lives in C:\Program Files or C:\Windows. Malware rarely does. It prefers Temp, Downloads and random AppData folders, often with a name copied from a real Windows file. One line shows everything running from outside the usual places.

Step 1: List programs outside the usual folders

PowerShell
Get-Process | ? Path | ? Path -notmatch 'Windows|Program Files' | select Name, Path
Example output
Name      Path
Discord   C:\Users\dev\AppData\Local\Discord\app-1.0\Discord.exe
Code      C:\Users\dev\AppData\Local\Programs\VS Code\Code.exe
svchost   C:\Users\dev\AppData\Roaming\svchost.exe

It looks at every running program, skips the ones in Windows and Program Files, and shows the rest with their full path.

Step 2: Read the list

  • Normal: many apps install for just your account in AppData: Discord, VS Code, Spotify, Zoom, Teams, WhatsApp, Slack, and most browser updaters.
  • Suspicious: a Windows name in the wrong folder. svchost.exe, explorer.exe, csrss.exe and lsass.exe belong in C:\Windows\System32 (or C:\Windows). The same name in AppData or Temp is one of the oldest tricks there is.
  • Suspicious: random letters as a name, or anything running straight from Temp or Downloads that you didn't just open.

Step 3: Not sure about one?

Upload the file to virustotal.com. About 70 antivirus engines check it for free. You can also right-click the file, open Properties > Digital Signatures and see who signed it.

One catch: admin programs

Programs running as administrator or as Windows itself show no path when PowerShell is not elevated, so ? Path skips them. To include them, right-click PowerShell and choose Run as administrator, then run the same line.

On a Mac

Open Activity Monitor, double-click a process and choose Open Files and Ports to see where it runs from. Real apps live in /Applications or /System.

More quick tips

Keep reading
All guides →