Windows 11 Antimalware Service Executable Access Denied

Published by Nyau Wai Hoe - Updated on

In Windows 11 or Windows 10, the Antimalware Service Executable (MsMpEng.exe) is a main service for Microsoft Defender, Windows’s own defense against malware. But sometimes, it can use a lot of your CPU, memory, and disk space, even if you’re not doing much on your PC.

Trying to stop the Antimalware Service Executable or MsMpEng.exe through Task Manager usually leads to an “Access Denied” message. This happens because the service has higher permissions to make sure it isn’t shut down by mistake or by harmful software. In this guide, we’ll talk about why this happens and show you three ways to somewhat turn off the Antimalware Service Executable in Windows 11.

Windows 11 Antimalware Service Executable Access Denied

Why “Access Denied” for Antimalware Service Executable in Task Manager?

The Antimalware Service Executable isn’t just any process in Windows 11. It’s a very important part of your PC’s security. Because of its importance:

  1. Windows makes sure the process can’t be stopped accidentally, by denying any action you do with the process.
  2. It’s hard to stop or mess with this service so that harmful software can’t easily shut down Microsoft Defender. If malware could stop this process, it would make your system more open to attacks.

Because of these reasons, when you try to stop the task directly from Task Manager, Windows protects the process by showing the “Access Denied” message.

Also see: Antimalware Service Executable High Disk or CPU Usage

Install a third-party antivirus

One simple way to deal with the high resource use of the Antimalware Service Executable is to simply install a third-party antivirus.

  • When you install and turn on a good third-party antivirus, Windows notices it and usually turns off its built-in Microsoft Defender to avoid conflicts and extra scans. This helps prevent both antivirus programs from using too many of the same resources.

Install a third party antivirus in Windows 11

The below steps are the right way to switch to a different antivirus and replace Windows Defender:

  1. Pick a trusted third-party antivirus that suits your needs.
  2. Download and install the antivirus software you chose.
  3. Restart your PC after the installation. Windows 11 should then recognize the third-party antivirus and turn off Microsoft Defender.
  4. To check, go to Windows Security > Virus & threat protection. You should see the third-party antivirus listed as “turned on” instead of Windows Defender.

Useful tip: How to Limit CPU Usage of a Process in Windows 11

Adjust Windows Defender scheduled scan in Task Scheduler

Another way to make sure the Antimalware Service Executable doesn’t use up too much of your system’s resources, especially when you’re actually using your PC, is to change when it should execute its scan. The following is how to adjust the timing of Windows Defender’s scans using the built-in Task Scheduler in Windows 11 or 10.

  1. Press the Windows + R keys at the same time, type “taskschd.msc“, and press Enter.Open Task Scheduler in Windows 11
  2. In the left pane, go to Library > Microsoft > Windows > Windows Defender.
  3. Find and double-click on “Windows Defender Scheduled Scan”.Windows Defender Scheduled Scan Task Scheduler
  4. Click the “Conditions” tab.
  5. Check the option for “Start the task only if the computer is idle for:” and pick how long you want. This makes sure the scan only runs when you’re not using the PC.MsMpEng.exe Access Denied Windows 11

Disable Windows Defender with a script suggested on Reddit

Some advanced users and fans on places like Reddit often find ways to tweak their experience more than what typical Windows settings provide. One such method talked about involves using a specific script to completely turn off Microsoft Defender. But using this script is not straightforward because it needs high permissions. You also need a tool called NSudo.

Related resource: How to Reinstall Windows Defender in Windows 11

Why do we need NSudo?

The script has to run with the permissions of the TrustedInstaller user, a built-in user account in Windows with lots of permissions, letting it handle system files and processes. Most system parts run under this account to stay safe even from administrators. NSudo is a tool that lets you run programs or scripts with the powers of TrustedInstaller.

Steps to completely disable Windows Defender

The below is a step-by-step guide on how to correctly turn off Microsoft Defender using the script and NSudo:

  1. Go to this Pastebin link.
  2. Copy the script and paste it into Notepad.
  3. Save the file as a .bat file (like “disable_defender.bat”).Script to completely disable Windows Defender
  4. Download NSudo from a trusted source or from https://www.majorgeeks.com/files/details/nsudo.html.
  5. Unzip the downloaded file to a place you know on your computer.NSudo Launcher
  6. Open the folder where you unzipped NSudo, and go to NSudo Launcher > x64.
  7. Start the NSudoLG.exe file.How to run NSudo Launcher in Windows 11
  8. Make sure “Enable All Privileges” is checked.
  9. In the M2-Team NSudo Launcher window, click “Browse“.
  10. Finally, click Run to start the script.Completely disable Antimalware Service Executable Access Denied
  11. The script will run with TrustedInstaller permissions and turn off Microsoft Defender.
  12. Check the changes:
  13. Restart your PC.
  14. Look at the status of Microsoft Defender. It should be off now.

Note that Turning off Microsoft Defender this way removes a big layer of protection for your PC. Make sure you have at least one other good antivirus or security program ready if you decide to turn off Defender.


Nyau Wai Hoe
Nyau Wai Hoe is the Founder and Chief Editor of WindowsDigitals.com. With a degree in software engineering and over 12 years of experience in the tech support industry, Nyau has established himself as an expert in the field, with a primary focus on the Microsoft Windows operating system. As a tech enthusiast, he loves exploring new technologies and leveraging them to solve real-life problems.

Share via
Copy link