powershell.exe

Windows PowerShell

Application ProcessSafeCommand-Line Tool
CPU Usage
0.5-6%
Memory
25-150 MB
Location
C:\Windows\System32\WindowsPowerShell\v1.0
Publisher
Microsoft Corporation

Quick Answer

powershell.exe is legitimate. It's the Windows PowerShell host used for scripting and automation, running under user control or via scheduled tasks.

Is it a Virus?
✔ NO - Safe
Must be in C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe or C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
Warning
Multiple instances can occur due to scripts or remoting
PowerShell remoting and background jobs may spawn separate powershell.exe processes
Can I Disable?
✔ YES
You can stop sessions or disable startup/Remoting; use Task Manager and policy settings carefully

What is powershell.exe?

powershell.exe is the Windows PowerShell command-line shell launcher. It runs scripts, commands, and automation tasks, and hosts the PowerShell engine. You may observe several powershell.exe instances when executing scripts, performing remoting, or running background jobs across sessions.

PowerShell is a task automation framework and shell built on .NET. The powershell.exe host launches the interpreter, executes cmdlets, scripts, and pipelines, and can establish remote sessions or background jobs, often spawning child processes for complex workflows.

Quick Fact: PowerShell has evolved from Windows PowerShell to PowerShell Core (pwsh); scripts often run under powershell.exe unless invoked by pwsh.exe.

Types of PowerShell Processes

Is powershell.exe Safe?

Yes, powershell.exe is safe when it's the legitimate file from Microsoft located in the Windows system folder.

Is powershell.exe a Virus or Malware?

The real powershell.exe is NOT a virus. Malware sometimes uses the same name to disguise itself. Always verify path and digital signature.

How to Tell if powershell.exe is Legitimate or Malware

  1. File Location: Must be in C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe or C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe. Any powershell.exe elsewhere is suspicious.
  2. Digital Signature: Right-click the file -> Properties -> Digital Signatures. Should show a Microsoft signature such as "Microsoft Corporation".
  3. Resource Usage: Normal usage is 0-6% CPU per session, 25-150 MB total memory. Constant high resource use when idle is suspicious.
  4. Behavior: PowerShell should start when invoked by a user or a script. Background persistence without user action warrants investigation.

Red Flags: If powershell.exe is located in unusual folders (Temp, AppData, or nonstandard Windows folders), runs with no user action, has no valid signature, or uses persistent resources, scan with reputable antivirus and WDAC/Applocker policies.

Why Is powershell.exe Running on My PC?

powershell.exe runs when you or a management tool start a PowerShell session. It can also be started by scripts, scheduled tasks, or remote management tasks.

Reasons it's running:

Can I Disable or Remove powershell.exe?

Yes, you can disable powershell.exe. If you don’t use PowerShell, you can stop startup launches and disable remoting. Windows PowerShell is a built-in OS component and cannot be fully uninstalled, but you can remove PowerShell Core (pwsh) if installed.

How to Stop powershell.exe

How to Uninstall PowerShell

Common Problems: High CPU or Memory Usage

If powershell.exe is consuming excessive resources:

Common Causes & Solutions

Quick Fixes:
1. Open Task Manager (Ctrl+Shift+Esc) and identify heavy powershell.exe sessions
2. Review running scripts and stop nonessential tasks
3. Close PowerShell windows and disable startup launches
4. Check for remoting and remote sessions; run Disable-PSRemoting if appropriate
5. Update PowerShell to the latest version (pwsh) or apply OS patches

Frequently Asked Questions

Is powershell.exe safe?

Yes, powershell.exe is a legitimate Windows component from Microsoft. Ensure it resides in C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe or C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe and has a valid signature.

Why is powershell.exe running on my PC?

It runs because you or a script started a PowerShell session, or a management tool invoked automation tasks, remoting, or background jobs.

Can I disable powershell.exe at startup?

Yes. Disable startup entries in Task Manager, and review Startup impact. Also consider disabling PowerShell Remoting if not needed.

How can I verify powershell.exe is legitimate?

Check the path: should be in Windows system folders. Verify the digital signature from Microsoft and ensure there are no suspicious parent processes.

What is the difference between powershell.exe and pwsh.exe?

powershell.exe launches Windows PowerShell (legacy). pwsh.exe launches PowerShell Core (cross-platform). They share syntax but may host different versions and runtimes.

How do I reduce PowerShell memory usage?

Close unused sessions, limit scripts, free pipelines, and enable Memory Saving features where available; consider updating to pwsh and using streaming data patterns.

Related Processes