Troubleshooting mode scenarios in Microsoft Defender for Endpoint - Microsoft Defender for Endpoint (2024)

  • Article

Applies to:

  • Microsoft Defender for Endpoint
  • Microsoft Defender for Endpoint Plan 1
  • Microsoft Defender for Endpoint Plan 2

Want to experience Defender for Endpoint? Sign up for a free trial.

Microsoft Defender for Endpoint troubleshooting mode allows you to troubleshoot various Microsoft Defender Antivirus features by enabling them from the device and testing different scenarios, even if they're controlled by the organization policy. The troubleshooting mode is disabled by default and requires you to turn it on for a device (and/or group of devices) for a limited time. This is exclusively an enterprise-only feature, and requires Microsoft Defender XDR access.

For troubleshooting performance-specific issues related to Microsoft Defender Antivirus, see: Performance analyzer for Microsoft Defender Antivirus.

Tip

  • During troubleshooting mode, you can use the PowerShell command Set-MPPreference -DisableTamperProtection $true on Windows devices.
  • To check the state of tamper protection, you can use the Get-MpComputerStatus PowerShell cmdlet. In the list of results, look for IsTamperProtected or RealTimeProtectionEnabled. (A value of true means tamper protection is enabled.)

Scenario 1: Unable to install application

If you want to install an application but receive an error message that Microsoft Defender Antivirus and tamper protection is on, use the following procedure to troubleshoot the issue.

  1. Request the security admin to turn on troubleshooting mode. You get a Windows Security notification once the troubleshooting mode starts.

  2. Connect to the device (using Terminal Services for example) with local admin permissions.

  3. Start Process Monitor (ProcMon). See the steps described in Troubleshoot performance issues related to real-time protection.

  4. Go to Windows security > Threat & virus protection > Manage settings > Tamper protection > Off.

    Alternately, during troubleshooting mode, you can use the PowerShell command Set-MPPreference -DisableTamperProtection $true on Windows devices.

    To check the state of tamper protection, you can use the Get-MpComputerStatus PowerShell cmdlet. In the list of results, look for IsTamperProtected or RealTimeProtectionEnabled. (A value of true means tamper protection is enabled.)

  5. Launch an elevated PowerShell command prompt, and toggle off real-time protection.

    • Run Get-MpComputerStatus to check the status of real-time protection.
    • Run Set-MpPreference -DisableRealtimeMonitoring $true to turn off real-time protection.
    • Run Get-MpComputerStatus again to verify status.
  6. Try installing the application.

Scenario 2: High CPU usage due to Windows Defender (MsMpEng.exe)

Sometimes during a scheduled scan, MsMpEng.exe can consume high CPU.

  1. Go to Task Manager > Details tab to confirm that MsMpEng.exe is the reason behind the high CPU usage. Also check to see if a scheduled scan is currently underway.

  2. Run Process Monitor (ProcMon) during the CPU spike for around five minutes, and then review the ProcMon log for clues.

  3. When the root cause is determined, turn on troubleshooting mode.

  4. Sign into the device, and launch an elevated PowerShell command prompt.

  5. Add process/file/folder/extension exclusions based on ProcMon findings using one of the following commands (the path, extension, and process exclusions mentioned in this article are examples only):

    Set-mppreference -ExclusionPath (for example, C:\DB\DataFiles)Set-mppreference –ExclusionExtension (for example, .dbx)Set-mppreference –ExclusionProcess (for example, C:\DB\Bin\Convertdb.exe)

  6. After adding the exclusion, check to see if the CPU usage has dropped.

For more information on Set-MpPreference cmdlet configuration preferences for Microsoft Defender Antivirus scans and updates, see Set-MpPreference.

Scenario 3: Application taking longer to perform an action

When Microsoft Defender Antivirus real-time protection is turned on, applications can take longer to perform basic tasks. To turn off real-time protection and troubleshoot the issue, use the following procedure.

  1. Request security admin to turn on troubleshooting mode on the device.

  2. To disable real-time protection for this scenario, first turn off tamper protection. You can use the PowerShell command Set-MPPreference -DisableTamperProtection $true on Windows devices.

    To check the state of tamper protection, you can use the Get-MpComputerStatus PowerShell cmdlet. In the list of results, look for IsTamperProtected or RealTimeProtectionEnabled. (A value of true means tamper protection is enabled.)

    For more information, see Protect security settings with tamper protection.

  3. Once tamper protection is disabled, sign into the device.

  4. Launch an elevated PowerShell command prompt, and run the following command:

    Set-mppreference -DisableRealtimeMonitoring $true

  5. After disabling real-time protection, check to see if the application is slow.

Scenario 4: Microsoft Office plugin blocked by Attack Surface Reduction

Attack surface reduction isn't allowing Microsoft Office plugin to work properly because Block all Office applications from creating child processes is set to block mode.

  1. Turn on troubleshooting mode, and sign into the device.

  2. Launch an elevated PowerShell command prompt, and run the following command:

    Set-MpPreference -AttackSurfaceReductionRules_Ids D4F940AB-401B-4EFC-AADC-AD5F3C50688A -AttackSurfaceReductionRules_Actions Disabled

  3. After disabling the ASR Rule, confirm that the Microsoft Office plugin now works.

For more information, see Overview of attack surface reduction.

Scenario 5: Domain blocked by Network Protection

Network Protection is blocking Microsoft domain, preventing users from accessing it.

  1. Turn on troubleshooting mode, and sign into the device.

  2. Launch an elevated PowerShell command prompt, and run the following command:

    Set-MpPreference -EnableNetworkProtection Disabled

  3. After disabling Network Protection, check to see if the domain is now allowed.

For more information, see Use network protection to help prevent connections to bad sites.

See also

  • Enable troubleshooting mode
  • Protect security settings with tamper protection
  • Set-MpPreference
  • Get an overview of Microsoft Defender for Endpoint

Tip

Do you want to learn more? Engage with the Microsoft Security community in our Tech Community: Microsoft Defender for Endpoint Tech Community.

Troubleshooting mode scenarios in Microsoft Defender for Endpoint - Microsoft Defender for Endpoint (2024)
Top Articles
India sees incorporation of 185,000 companies in 2023-24, shows data
Minimalism Is the Key to Sustainability | Green City Times
Kmart near me - Perth, WA
Bj 사슴이 분수
Do you need a masters to work in private equity?
Dr Doe's Chemistry Quiz Answer Key
Rochester Ny Missed Connections
Garrick Joker'' Hastings Sentenced
Jcpenney At Home Associate Kiosk
A rough Sunday for some of the NFL's best teams in 2023 led to the three biggest upsets: Analysis - NFL
Patrick Bateman Notebook
Check From Po Box 1111 Charlotte Nc 28201
Epro Warrant Search
Roof Top Snipers Unblocked
Danforth's Port Jefferson
Saritaprivate
Why Does Lawrence Jones Have Ptsd
Kirksey's Mortuary - Birmingham - Alabama - Funeral Homes | Tribute Archive
Sea To Dallas Google Flights
Universal Stone Llc - Slab Warehouse & Fabrication
Craigslist Lake Charles
What Equals 16
Student Portal Stvt
§ 855 BGB - Besitzdiener - Gesetze
Smartfind Express Login Broward
Cor Triatriatum: Background, Pathophysiology, Epidemiology
Wonder Film Wiki
Mami No 1 Ott
Ihs Hockey Systems
Pch Sunken Treasures
Bernie Platt, former Cherry Hill mayor and funeral home magnate, has died at 90
Verizon TV and Internet Packages
Bus Dublin : guide complet, tarifs et infos pratiques en 2024 !
What Time Does Walmart Auto Center Open
Hattie Bartons Brownie Recipe
Amici Pizza Los Alamitos
Ni Hao Kai Lan Rule 34
The Land Book 9 Release Date 2023
Arcadia Lesson Plan | Day 4: Crossword Puzzle | GradeSaver
Ticketmaster Lion King Chicago
3496 W Little League Dr San Bernardino Ca 92407
Random Animal Hybrid Generator Wheel
2013 Honda Odyssey Serpentine Belt Diagram
'The Nun II' Ending Explained: Does the Immortal Valak Die This Time?
Goats For Sale On Craigslist
Frontier Internet Outage Davenport Fl
Dagelijkse hooikoortsradar: deze pollen zitten nu in de lucht
Where To Find Mega Ring In Pokemon Radical Red
Gameplay Clarkston
Cheryl Mchenry Retirement
Volstate Portal
Latest Posts
Article information

Author: Rubie Ullrich

Last Updated:

Views: 6418

Rating: 4.1 / 5 (72 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Rubie Ullrich

Birthday: 1998-02-02

Address: 743 Stoltenberg Center, Genovevaville, NJ 59925-3119

Phone: +2202978377583

Job: Administration Engineer

Hobby: Surfing, Sailing, Listening to music, Web surfing, Kitesurfing, Geocaching, Backpacking

Introduction: My name is Rubie Ullrich, I am a enthusiastic, perfect, tender, vivacious, talented, famous, delightful person who loves writing and wants to share my knowledge and understanding with you.