Forum Discussion

smh21's avatar
smh21
Copper Contributor
Jun 10, 2025

Windows Defender keeps closing some apps after a few seconds

I already reinstalled windows 5 or 6 times, 23H2 and 24H2, installed the latest updates, both of them behaved the same way.

The first problem is actually that windows defender keeps identifying almost everything as a threat!

And when I add an exclusion on the main drive itself like on D drive, then apps keep getting closed!

Then I stopped adding exclusions, I removed them, now after finding so many threats, it is now closing the apps again!

I even tried removing Windows Defender using https://github.com/ionuttbara/windows-defender-remover but even after that, some apps just get closed automatically after a few seconds.

I'm sure Windows Defender is closing them somehow, I just don't know how and why.

I once reinstalled my windows and I visibly saw that the moment I added those exclusions to windows defender, it immediatelly closes a certain app.

I'm sure it's windows defender doing this.

I was just working with my PC then it kept finding threats, I restarted my PC, hoping to get it fixed, then apps started to close!

1 Reply

  • BeckettShaw's avatar
    BeckettShaw
    Iron Contributor

    Click Virus and Threat Protection > Administrative Settings > Exclusions, if you want to temporarily disable realtime protection, run Set-MpPreference -DisableRealtimeMonitoring $true in PowerShell, and remember to turn the protection back on quickly after the test.

Resources