Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / Windows Defender Threat Service Has Stopped, Restart It Now

December 20, 2022 Windows 10Windows 11

Windows Defender Threat Service Has Stopped, Restart It Now

Hi, admin! I’m trying to turn on Windows Defender on Windows 10, but in the “Windows Defender Security Center”, the “Virus & threat protection” component has the message: “Threat service has been stopped. Restart it now“. If I try to restart Microsoft Defender using the appropriate button an unknown error appears: “Unexpected error. Sorry, we ran into a problem. Please try again”. How do I fix Windows Defender Antivirus? Thank you in advance!


windows defender - Threat Service has stopped. Restart it now

Answer

Let’s take a look at the typical reasons why the virus and threat protection feature (Microsoft Defender’s built-in antivirus) may not work on Windows 10. Check all items one by one.

Please note that starting from Windows 10 build 2004, Windows Defender Antivirus has been renamed to Microsoft Defender Antivirus.

Contents:
  • Microsoft Defender Not Working Due to 3rd Party Antivirus
  • Enable Microsoft Defender Antivirus Services
  • Enable Microsoft Defender Using Registry on Windows 10
  • Check That the Microsoft Defender in Enabled in Group Policy
  • Re-Register Microsoft Defender DLLs
  • Check and Install Windows Updates

Microsoft Defender Not Working Due to 3rd Party Antivirus

Check if you have a third-party antivirus installed on your computer that prevents Microsoft Defender from working. Microsoft Defender Antivirus is automatically disabled if a third-party antivirus app is installed on your computer.

Please decide which antivirus you want to use – third-party or Microsoft Defender. If you don’t need a third-party antivirus, disable or uninstall it.

Enable Microsoft Defender Antivirus Services

In order the Microsoft Defender to work correctly on Windows 10, you need to check several services. Open the Services Management Console (services.msc) and make sure the following items are in the list of services:

  • Windows Defender Advanced Threat Protection Service (Sense);
  • Microsoft Defender Antivirus Network Inspection Service (WdNisSvc);
  • Microsoft Defender Antivirus Service (WinDefend);
  • Security Center (WSCSVC).

The status of the services can be checked using PowerShell:

get-service Sense, WdNisSvc, WinDefend, wscsvc | select name,status,starttype

check microsoft defender service state with powershell on windows 10

The startup type must be Manual for the Sense and WdNisSvc services.

The Security Center (WinDefend) and Microsoft Defender Antivirus (wscsvc) services must be running. If these services are disabled, you won’t be able to use Microsoft Defender.

Verify that the startup type for the services is set to Automatic. If any service is stopped, start it manually. If all services are running, restart them.

restart Windows Defender Advanced Threat Protection

Enable Microsoft Defender Using Registry on Windows 10

In versions of Windows 10 prior to build 2004, it was possible to disable Windows Defender through the registry. This could be done using the DisableAntiSpyware registry parameter. This option was usually used by OEMs or system administrators when a third-party antivirus app was intended to be used on the device.

Run the Registry Editor (regedit.exe) and go to the registry key HKLM\Software\Policies\Microsoft\Windows Defender. If the DisableAntiVirus and DisableAntiSpyware DWORD parameters are present in the right pane (at least one), remove them or change the value to 0.

DisableAntiVirus registry parameter to disable defender windows 10

In some cases, when you change or delete these registry parameters, you may receive an error:

Cannot edit DisableAntiSpyware. Error writing the value’s new contents.

The fact is that Windows Defender has a kernel-mode driver (wdfilter.sys) that registers a Registry callback filter which protects Defender’s registry keys.

Try to stop all Windows Defender related services before changing the registry.

Also try to take Ownership of a registry key HKLM\Software\Policies\Microsoft\Windows Defender and grant yourself Full Control permissions.

After that, try restarting the Virus and Threat Protection using the “Restart now” button. The service must start correctly.

Then go to Settings -> Windows Security -> Virus & threat protection -> Turn on.

turn on virus threat protection on windows 10

Also check that the Real-time protection option is enabled under Windows Security -> Virus & threat protection -> Manage settings.

enable real time protection on windows 10

In current Windows 10 builds, you cannot disable Microsoft Defender Antivirus through the DisableAntiSpyware registry parameter (this loophole was used by many malware).

Microsoft Defender is now automatically disabled by Windows 10 if it detects a third-party antivirus installed on your device. If you don’t have a third-party antivirus installed and need to disable Microsoft Defender, first you need to disable the Microsoft Defender Tamper Protection. This Windows Security feature helps prevent malicious apps from modifying important Microsoft Defender Antivirus settings, including real-time and cloud protection. Tamper Protection can only be disabled through the Windows Security application, and a User Account Control (UAC) prompt will appear to confirm the change.

tamper protection in microsoft defender antivirus on windows 10

You can also disable Tamper Protection through the registry. To do this, you need to create a DWORD parameter named TamperProtection with a value of 0 under the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Features. But before that, you must first take ownership of the Features registry key.

Check That the Microsoft Defender in Enabled in Group Policy

Open the local Group Policy Editor (gpedit.msc) and verify that Microsoft Defender is not disabled via Group Policy. To do this, go to the section Computer Configuration -> Administrator Templates -> Windows Components -> Windows Defender Antivirus. Verify that the Turn off Microsoft Defender Antivirus policy is Not configured or Disabled.

In Windows 10 2004 and newer builds, the GPO section with Defender settings is called Microsoft Defender Antivirus.

Turn off Windows Defender Antivirus - group policy

Re-Register Microsoft Defender DLLs

Try to re-register the Windows Defender libraries. To do this, open a command prompt as administrator and run the following commands:
regsvr32 atl.dll
regsvr32 wuapi.dll
regsvr32 softpub.dll
regsvr32 mssip32.dll

reregistering windows defender dlls

Restart Microsoft Defender and check if the problem is fixed.

Check and Install Windows Updates

In rare cases, Microsoft Defender Antivirus may stop working after installing monthly Windows 10 updates. In this case, try to check for new updates and install them via Settings -> Update & Security -> Windows Update -> Check for updates or use PowerShell to install the latest updates. Most likely, they will fix the issue.

If nothing helps, check and repair the integrity of Windows image and system files with the commands:

sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth

I hope this brief guide will help you solve the problem if you unable to start (stop) the threat service on Windows 10.

17 comments
10
Facebook Twitter Google + Pinterest
previous post
How to Clean Up and Compress the WinSxS Folder on Windows 10/Windows Server?
next post
Set-ADUser: How to Change User Properties in Active Directory with PowerShell

Related Reading

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

Installing Language Pack in Windows 10/11 with PowerShell

September 15, 2023

How to View and Change BIOS (UEFI) Settings...

September 13, 2023

17 comments

sandeep February 15, 2020 - 7:16 am

Worked for me thank you so much …

Reply
Kumba February 25, 2020 - 3:12 pm

Man, ur post solved something that I have been cracking my head off! Bravo!

Reply
Shan April 16, 2020 - 12:05 pm

Thanks, my problem also solved…. 🙂

Reply
Robert April 16, 2020 - 3:31 pm

I got an error when using cmd with regsvr32 wuapi.dll. It says this:
The module “wuapi.dll” was loaded but the call to
DLLRegisterServer failed with error code 0x8002801c.

Reply
Abael April 17, 2020 - 5:44 am

I also got this error, can anyone help?!

Reply
0zt June 7, 2021 - 8:55 am

at first i had the problem as well, but i started cmd as administrator and it worked. also it sloved the problem

Reply
da boi April 16, 2020 - 3:32 pm

Restarting Windows Defender Antivirus Service fixed it, thank you!!!!!!

Reply
Matthew Robbins April 16, 2020 - 4:52 pm

Hi guys, I’m missing the ‘Windows Defender Advanced Threat Protection Service’ and the ‘Windows Defender Security Center Service’ files from my services, can anyone help as I’ve just reinstalled my Windows and my virus and threat protection is down! Any help would be much appreciated!! 😀

Reply
moo September 19, 2020 - 8:57 pm

Windows+X -> Command Prompt (Admin)

Reply
yonas September 30, 2020 - 9:33 am

bro when I try to enable or make it manual on the services it won’t let me, I mean I can’t click on it so what can I do? and also in my services, I only have Windows Defender Antivirus Network Inspection Service (WdNisSvc); and windows defender firewall

Reply
Suraj May 29, 2021 - 11:25 am

I am also having the same problem. It’s so annoying and wasting a lot of my time

Reply
Kinan January 26, 2021 - 5:39 am

thanks, it was fixed using the last four commands, but can anyone tell me what caused the problem in the first place?

Reply
Reza April 16, 2021 - 2:11 pm

Thanks, my problem also solved…. 🙂

Reply
Sumeet Kumar July 25, 2021 - 7:20 am

I have tried all this options, still it is not working.

Reply
AUGUSTIN LUCA July 26, 2021 - 6:55 am

Restarting services worked for me.

Reply
Josh July 31, 2021 - 4:50 pm

Windows version: 20H2
I’m going to sound like a god damn bot for this but this legit helped with my problem. Windows defender wouldn’t start and wouldn’t show up in providers. Modifying the registry keys and then instead of going to services and restarting windows defender, I just went to the security settings and it prompted for the service to restarted there. Issue resolved! I thankfully wasn’t missing any other files or programs, just a stubborn service not starting a couple registry keys to fix it! Thank you!

Reply
Md Akib Ul Islam August 4, 2021 - 9:13 am

The last 4 cmd dll commands woked for me, thanks

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11
  • How to Restore Deleted EFI System Partition in Windows
  • Network Computers are not Showing Up in Windows 10/11
  • Updating List of Trusted Root Certificates in Windows
  • How to Create a Wi-Fi Hotspot on your Windows PC
  • How to Sign an Unsigned Device Driver in Windows
  • How to Download APPX File from Microsoft Store for Offline Installation?
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top