mshta.exe

Microsoft HTML Application Host

Application ProcessSafeSystem Utility
CPU Usage
0-5%
Memory
20-100 MB
Location
C:\Windows\System32
Publisher
Microsoft Corporation

Quick Answer

mshta.exe is safe. It's Microsoft's HTML Application Host used to run HTA files and scripts; it can be abused by malware, so verify origin.

Is it a Virus?
✔ NO - Safe
Must be in C:\Windows\System32\mshta.exe
Warning
Multiple instances possible
Each HTA or script may spawn its own mshta process
Can I Disable?
✔ YES
Disabling may affect HTA-based utilities; disable only if you do not rely on HTA apps

What is mshta.exe?

mshta.exe is the Microsoft HTML Application Host. It runs HTA files—HTML Applications that blend HTML, CSS, and scripting to deliver lightweight user interfaces and automation. Windows uses it for built-in features and legacy apps; when sourced from untrusted locations, it can be misused by attackers.

Its runner executes HTA content via VBScript or JScript engines, rendering the interface with the legacy Microsoft HTML rendering engine. Each HTA runs in its own mshta process, providing isolation but potentially increasing memory and CPU usage during heavy scripts.

Quick Fact: mshta.exe has been a standard host for HTA apps since Windows 95-era technology, enabling UI-rich scripts without a separate runtime.

Types of mshta.exe Processes

Is mshta.exe Safe?

Yes, mshta.exe is safe when it is the legitimate file from Microsoft downloaded via Windows Update or pre-installed by the OS.

Is mshta.exe a Virus or Malware?

The real mshta.exe is not a virus. However, malware sometimes disguises itself with similar names to evade detection.

How to Tell if mshta.exe is Legitimate or Malware

  1. File Location: Must be in C:\Windows\System32\mshta.exe. Any mshta.exe elsewhere is suspicious.
  2. Digital Signature: Right-click the process in Task Manager -> Open file location -> Right-click mshta.exe -> Properties -> Digital Signatures. Should show "Microsoft Corporation".
  3. Resource Usage: Normal usage is 0-5% CPU per HTA and 20-100 MB total memory. Extremely high usage when no HTA is actively used is suspicious.
  4. Behavior: mshta.exe should run only when an HTA is invoked by a user or trusted system task. Continuous background activity without HTA triggers is suspicious.

Red Flags: Unusual locations (like C:\Temp or AppData folders), mshta.exe launching without HTA involvement, missing or invalid digital signatures, or constant high resource use should prompt a malware scan.

Why Is mshta.exe Running on My PC?

mshta.exe runs when an HTA (HTML Application) is started by you, a system task, or a program that uses HTA wrappers. It may also stay resident due to lingering HTA scripts or scheduled tasks.

Reasons it's running:

Can I Disable or Remove mshta.exe?

Yes, you can disable mshta.exe. If you never use HTA-based apps, you can block or limit its usage. Do not delete the file since it is a system component and required by some Windows features.

How to Stop mshta.exe

How to Uninstall mshta

Common Problems: High CPU or Memory Usage

If mshta.exe is consuming excessive resources:

Common Causes & Solutions

Quick Fixes:
1. Open Task Manager and end high-CPU mshta.exe processes
2. Run a full malware scan with a reputable product
3. Verify mshta.exe is located at C:\Windows\System32\mshta.exe and has a valid Microsoft signature
4. Disable HTA execution for non-essential tasks via AppLocker
5. Update Windows to the latest build

Frequently Asked Questions

Is mshta.exe a virus?

No, the legitimate mshta.exe from Microsoft is not a virus. Verify the file location (C:\Windows\System32\mshta.exe) and the digital signature from Microsoft.

Why is mshta.exe using so much CPU?

High CPU usage usually happens when an HTA file runs heavy JavaScript or graphics. Use Task Manager to identify the HTA, close it, or disable the HTA if not needed.

Can I delete mshta.exe?

Not recommended. mshta.exe is a system component. Deleting it can destabilize Windows or break HTA-based functionality. Consider blocking HTA execution instead.

Can I disable mshta.exe?

Yes, you can disable by restricting HTA execution with AppLocker or by blocking HTA file associations. If you rely on HTA, disable with caution.

Why is mshta.exe running at startup?

Some Windows components or third-party software use HTA at startup. If you don’t need it, disable associated startup tasks or apply AppLocker rules to block mshta.

What is an HTA and how does mshta.exe relate?

HTA stands for HTML Application. mshta.exe hosts and runs HTA files, which combine HTML, CSS and scripting to provide UI and automation; HTA support is legacy but still present in Windows.

Related Processes