top of page

Get rid of Windows defender!

What's the problem?

My Mexican colleague called me last night and asked me to help out a colleague, this involved using a dodgy piece of software which is very old, (I wont explain further 😂). But to run it on a modern Windows Server is almost impossible. The host detects the software as being infected (It may well be, but I’ve never suffered from it). Therefore I had to keep the software in a password protected Zip file and only extract it on a Virtual machine that I did’t mind sacrificing. I needed to temporarily stop Windows Defender completely including its real time protection 😂 for a couple of minutes. This can't be done with a simple click unfortunately!

Hint: Standard warning, disabling Windows defender on a production machine is not a good idea, (without another 3rd party anti virus/anti malware product.) How to do it? To get defender stopped open an administrative PowerShell Window, and execute the following command; Set-MpPreference -DisableRealTimeMonitoring $true

You can re-enable it simply by typing:

Set-MpPreference -DisableRealTimeMonitoring $false

Other Options To Disable Window Defender

You can disable Defender using the following group Policy;

Computer Configuration > Administrative Templates > Windows Components > Windows Defender Antivirus > Turn off Windows Defender Antivirus > Set to Enabled

Or by setting the this registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender

Create a new DWORD (32 bit) called DisableAntiSpyware and set its value to ‘1’.

How To Remove Windows Defender ?

If you started reading this article in order to get rid of the spoofy Windows Defender you can achieve this goal by typing:

Uninstall-WindowsFeature Windows-Defender


All product names, logos, and brands are the property of their respective owners in Austria or other countries. All company, product and service names used on this website are for identification purposes only. Pheniix is not affiliated with or an official partner of Cisco, CompTIA,Dimension Data, VMware, Amazon, Microsoft, Certified Ethical Hacker, (ISC)², Juniper, Wireshark, Offensive Security,Google, GNS3, F5, Python, Linux, Java, OpenStack, Vagrant, Ansible, Docker, GIT, , Blockchain or other companies. Use of these names, logos, and brands does not imply endorsement. The opinions expressed on pheniix are personal perspectives and not those of Cisco, Dimension Data or any other company. Pheniix runs as an independent blog.

bottom of page