Video Guide: How to completely Disable Microsoft Defender Antivirus


The following code (which I did NOT compose) was highly useful in disabling Windows Defender for me. I got it from one of Freebooter's videos:

Code:
:: How to Permanently Disable Windows Defender Antivirus in Windows 11
@Echo Off & Cls
net sess>nul 2>&1||(powershell start cmd -ArgumentList """/c %~0""" -verb Runas & exit)
:_Start
Cls & Mode CON  LINES=11 COLS=60 & Color 0E &Title Created By FreeBooter
Echo.
Echo.     
Echo         Type (D) letter to Disable Windows Defender
Echo.     
Echo.       
Echo         Type (E) letter to Enable Windows Defender 
Echo.     
Set /p input=^>
If /i  Not %input%==D (Goto :_Ex) Else (Goto :_Disable)
:_Ex
If /i  Not %input%==E  (Goto :_Start) Else (Goto :_Enable)
:_Disable
PowerShell Checkpoint-Computer -Description "Enable Windows Defender" -RestorePointType "MODIFY_SETTINGS"
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableRealtimeMonitoring" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiVirus" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableSpecialRunningModes" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableRoutinelyTakingAction" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "ServiceKeepAlive" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "ServiceStartStates" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableOnAccessProtection" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableScanOnRealtimeEnable" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableRealtimeMonitoring" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "ForceUpdateFromMU" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "DisableBlockAtFirstSeen" /t REG_DWORD /d "1" /f
Cls & Mode CON  LINES=5 COLS=48 & Color 04 & Title - WARNING -
 Echo.
 Echo.
 Echo            Windows Defender Disabled
Ping -n 5  localhost > Nul
Goto :Reboot
:_Enable
 Reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware"  /f
Reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableRealtimeMonitoring"  /f
Reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiVirus"  /f
Reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableSpecialRunningModes" /f
Reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableRoutinelyTakingAction"  /f
Reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "ServiceKeepAlive" /f
Reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "ServiceStartStates" /f
Reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /f
Reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates"  /f
Reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet"  /f
Cls & Mode CON  LINES=5 COLS=48 & Color E0 & Title - WARNING -
 Echo.
 Echo.
 Echo            Windows Defender Enabled
Ping -n 5  localhost > Nul
:Reboot
Cls & Mode CON  LINES=11 COLS=42 & Color 0E & Title FreeBooter
Echo.
Echo.
Echo    THIS COMPUTER WILL REBOOT
Echo.
Echo.
Echo    PLEASE SAVE ALL WORK IN PROGRESS
Echo.
Echo.
Echo    PRESS 'ENTER' KEY TO RESTART COMPUTER
Pause >Nul
Shutdown  -r  -t 5  -c "REBOOTING SYSTEM" 2>&1 > Nul
Exit

After doing this, I went to Windows\System32\smartscreen.exe and renamed it smartscreen.exe.old since it is part of WIndows Defender and would still run even after all of the above had been performed.

Now I just have my Antivirus of my choice running without having Windows Defender running in the background.

bob
For this batch script to work, you have to disable Tamper Protection.
 

My Computer My Computer

At a glance

Windows 11AMD Ryzen 7 5700GMicron Technology DDR4-3200 16GBNVIDIA GeForce RTX 3060
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
HP Pavilion
CPU
AMD Ryzen 7 5700G
Motherboard
Erica6
Memory
Micron Technology DDR4-3200 16GB
Graphics Card(s)
NVIDIA GeForce RTX 3060
Sound Card
Realtek ALC671
Monitor(s) Displays
Samsung SyncMaster U28E590
Screen Resolution
3840 x 2160
Hard Drives
SAMSUNG MZVLQ1T0HALB-000H1
  • Like
Reactions: OAT
I went to Windows\System32\smartscreen.exe and renamed it smartscreen.exe.old since it is part of WIndows Defender and would still run even after all of the above had been performed.

Now I just have my Antivirus of my choice running without having Windows Defender running in the background.
thanks for the tip!
 

My Computers My Computers

  • At a glance

    Windows 11 ProIntel Core Ultra 9 275HXSK Hynix 64GB DDR5-5600MHz RAMGeForce RTX 5090 24 GB GDDR7 VRAM
    OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    ASUS ROG Strix SCAR 16 G635LX
    CPU
    Intel Core Ultra 9 275HX
    Motherboard
    ASUS
    Memory
    SK Hynix 64GB DDR5-5600MHz RAM
    Graphics Card(s)
    GeForce RTX 5090 24 GB GDDR7 VRAM
    Sound Card
    Dolby Atmos-powered speakers - 2 tweeters and 3 downward firing woofers
    Monitor(s) Displays
    ASUS ROG Strix OLED XG27AQWMG QHD 280 Hz 27" Monitor
    Screen Resolution
    QHD (2560x1440)
    Hard Drives
    2x WD_BLACK SN850X 8TB SSDs (RAID 0)
    PSU
    380W AC Power Adapter
    Cooling
    Thermal Grizzly Conductonaut + IETS GT600 Cooling Pad
    Keyboard
    ROG Strix Scope II 96 RX Wireless
    Mouse
    ROG Chakram X Origin
    Internet Speed
    1 GBPS Down / 882 MBPS Up
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender
  • At a glance

    Windows 11 ProIntel i7-10875HKingston FURY Impact 64 GB 3200 MHz DDR4 RAMnVIDIA GeForce GTX 1650 Ti Max-Q w/ 4 GB GDDR6
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 9500
    CPU
    Intel i7-10875H
    Memory
    Kingston FURY Impact 64 GB 3200 MHz DDR4 RAM
    Graphics card(s)
    nVIDIA GeForce GTX 1650 Ti Max-Q w/ 4 GB GDDR6
    Sound Card
    Realtek
    Monitor(s) Displays
    15.6 UHD+ Touch, InfinityEdge, 500-nits, Anti-Reflecitve
    Screen Resolution
    3840 x 2400
    Hard Drives
    Samsung 990 PRO 2TB + 4TB SSDs
    PSU
    Dell 130W Laptop Charger USB C Type C AC Adapter
    Cooling
    Noctua NT-H2 Thermal Paste on CPU + GPU
    Mouse
    Logitech MX Anywhere 3
    Internet Speed
    1 GBPS Down / 875 MBPS Up
    Browser
    Google Chrome
    Antivirus
    AVG Free Antivirus
Good luck gathering the crowd then.

I suspect the expression of not caring about performance was a bit over the top; I give you that.
Talking about performance, please kindly modify your thread title with the word Video so we don't waste our time trying to help somebody worthy of it.
Thank you.
I dunno if i qualify as a crowd but maybe a handful more and we got it lolol
 

My Computer My Computer

At a glance

11[email protected]Viper Steelseries 32gb@ 3600mhzGigabyte 2070 Super 8GB, +200 core + 600 memory
OS
11
Computer type
PC/Desktop
Manufacturer/Model
Custom
CPU
[email protected]
Motherboard
Gigabyte Gaming X Z490
Memory
Viper Steelseries 32gb@ 3600mhz
Graphics Card(s)
Gigabyte 2070 Super 8GB, +200 core + 600 memory
Monitor(s) Displays
ASUS 4k HDR, Two 1080p Benq and Samsung
Screen Resolution
3840x2160/2560x1440/1920x1080
Hard Drives
Adata XPG SX8200 PRO 1tb
Samsung EVO 870 500GB
PSU
Corsair RX 650
Case
NZXT h510
Cooling
CM HYPER 212 RGB
Keyboard
Razer Ornata Chroma
Mouse
Steelseries Rival 710
Well heres one, Personally i don't use any AV at all, Windows defender stuff etc is all off. Why you may ask? I personally dont need it, The best AV is the one between you're ears. I know how to keep my house in order without it and touch wood, had more virus's back in the day with av's installed than i do now without it( 0 yes really 0) and thats maybe been since 2016 or so.
Nonsense - you have just been lucky.
 

My Computer My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
Nonsense - you have just been lucky.
Highly doubt that, Isn't unheard of for people not to run AV's. It really isn't rocket science lol.
7 years of rolling luck. Yup...
 

My Computer My Computer

At a glance

11[email protected]Viper Steelseries 32gb@ 3600mhzGigabyte 2070 Super 8GB, +200 core + 600 memory
OS
11
Computer type
PC/Desktop
Manufacturer/Model
Custom
CPU
[email protected]
Motherboard
Gigabyte Gaming X Z490
Memory
Viper Steelseries 32gb@ 3600mhz
Graphics Card(s)
Gigabyte 2070 Super 8GB, +200 core + 600 memory
Monitor(s) Displays
ASUS 4k HDR, Two 1080p Benq and Samsung
Screen Resolution
3840x2160/2560x1440/1920x1080
Hard Drives
Adata XPG SX8200 PRO 1tb
Samsung EVO 870 500GB
PSU
Corsair RX 650
Case
NZXT h510
Cooling
CM HYPER 212 RGB
Keyboard
Razer Ornata Chroma
Mouse
Steelseries Rival 710
Highly doubt that, Isn't unheard of for people not to run AV's. It really isn't rocket science lol.
7 years of rolling luck. Yup...
10+ years for me.

Gone are the days of XP when you could earn a full time living removing viruses and other malware from people's computers.
 

My Computers My Computers

  • At a glance

    Windows 11 ProIntel Core i9-10900XCorsair 64 GB (4 x 16 GB) CMW64GX4M4C3000C15 ...GIGABYTE GeForce GTX 1660 Super Mini ITX 6 GB OC
    OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Stigg's Build
    CPU
    Intel Core i9-10900X
    Motherboard
    GIGABYTE X299X DESIGNARE 10G
    Memory
    Corsair 64 GB (4 x 16 GB) CMW64GX4M4C3000C15 Vengeance RGB Pro 3000Mhz DDR4
    Graphics Card(s)
    GIGABYTE GeForce GTX 1660 Super Mini ITX 6 GB OC
    Sound Card
    Realtek ALC1220
    Monitor(s) Displays
    Samsung 27" FHD LED FreeSync Gaming Monitor (LS27F350FHEXXY)
    Screen Resolution
    1920 x 1080
    Hard Drives
    Samsung 970 Pro Series 1TB M.2 2280 NVMe SSD
    Western Digital Red Pro WD8003FFBX-68B9AN0 8 TB, 7200 RPM, SATA-III
    Western Digital Red Pro WD8003FFBX-68B9AN0 8 TB, 7200 RPM, SATA-III
    PSU
    Corsair HX1200 1200W 80 Plus Platinum
    Case
    Fractal Design Define 7 Black Solid Case
    Cooling
    Noctua NH-D15 Chromax Black
    Keyboard
    Razer Ornata V2
    Mouse
    Razer DeathAdder Essential
    Internet Speed
    FTTN 100Mbps / 40Mbps
    Browser
    Mozilla Firefox
    Antivirus
    N/A
    Other Info
    Logitech BRIO 4k Ultra HD USB-C Webcam
  • At a glance

    Windows 10 ProCore i7-8750HSK Hynix 32 GB (2 x 16 GB) HMA82GS6CJR8N-VK 1...NVIDIA GeForce GTX 1070
    Operating System
    Windows 10 Pro
    Computer type
    Laptop
    Manufacturer/Model
    ASUS ROG Zephyrus M GM501GS
    CPU
    Core i7-8750H
    Motherboard
    Zephyrus M GM501GS
    Memory
    SK Hynix 32 GB (2 x 16 GB) HMA82GS6CJR8N-VK 16 GB DDR4-2666 DDR4 SDRAM
    Graphics card(s)
    NVIDIA GeForce GTX 1070
    Sound Card
    Realtek ALC294
    Monitor(s) Displays
    AU Optronics B156HAN07.1 [15.6" LCD]
    Screen Resolution
    1920 x 1080
    Hard Drives
    Samsung MZVKW512HMJP-00000 512 GB, PCI-E 3.0 x4
    Samsung SSD 860 QVO 4TB 4 TB, SATA-III
    PSU
    N/A
    Case
    N/A
    Cooling
    N/A
    Keyboard
    PC/AT Enhanced PS2 Keyboard (101/102-Key)
    Mouse
    Razer DeathAdder Essential
    Internet Speed
    FTTN 100Mbps / 40Mbps
    Browser
    Mozilla Firefox
    Antivirus
    N/A
    Other Info
    USB2.0 HD UVC Webcam
In general, you shouldn't have to permanently disable Windows Defender. If you choose to use a different AV, it's installer will disable Windows Defender (and re-enable Defender upon uninstall). And if it's a machine set up for some special purpose (maybe where maximum performance is needed), and doesn't need AV (maybe it's totally offline), just disabling Windows Defender's real time protection should be sufficient.

I can't think of any common scenario where Windows Defender really needs to be disabled, but I'm sure there are some niche reasons.

Edit: I see from Spartan's answer that other AV solutions may not totally disable all Windows Defender services. That's something I've never checked closely. Good to know.

11.png
 

My Computers My Computers

  • At a glance

    Windows 11 ProIntel Core Ultra 9 275HXSK Hynix 64GB DDR5-5600MHz RAMGeForce RTX 5090 24 GB GDDR7 VRAM
    OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    ASUS ROG Strix SCAR 16 G635LX
    CPU
    Intel Core Ultra 9 275HX
    Motherboard
    ASUS
    Memory
    SK Hynix 64GB DDR5-5600MHz RAM
    Graphics Card(s)
    GeForce RTX 5090 24 GB GDDR7 VRAM
    Sound Card
    Dolby Atmos-powered speakers - 2 tweeters and 3 downward firing woofers
    Monitor(s) Displays
    ASUS ROG Strix OLED XG27AQWMG QHD 280 Hz 27" Monitor
    Screen Resolution
    QHD (2560x1440)
    Hard Drives
    2x WD_BLACK SN850X 8TB SSDs (RAID 0)
    PSU
    380W AC Power Adapter
    Cooling
    Thermal Grizzly Conductonaut + IETS GT600 Cooling Pad
    Keyboard
    ROG Strix Scope II 96 RX Wireless
    Mouse
    ROG Chakram X Origin
    Internet Speed
    1 GBPS Down / 882 MBPS Up
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender
  • At a glance

    Windows 11 ProIntel i7-10875HKingston FURY Impact 64 GB 3200 MHz DDR4 RAMnVIDIA GeForce GTX 1650 Ti Max-Q w/ 4 GB GDDR6
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 9500
    CPU
    Intel i7-10875H
    Memory
    Kingston FURY Impact 64 GB 3200 MHz DDR4 RAM
    Graphics card(s)
    nVIDIA GeForce GTX 1650 Ti Max-Q w/ 4 GB GDDR6
    Sound Card
    Realtek
    Monitor(s) Displays
    15.6 UHD+ Touch, InfinityEdge, 500-nits, Anti-Reflecitve
    Screen Resolution
    3840 x 2400
    Hard Drives
    Samsung 990 PRO 2TB + 4TB SSDs
    PSU
    Dell 130W Laptop Charger USB C Type C AC Adapter
    Cooling
    Noctua NT-H2 Thermal Paste on CPU + GPU
    Mouse
    Logitech MX Anywhere 3
    Internet Speed
    1 GBPS Down / 875 MBPS Up
    Browser
    Google Chrome
    Antivirus
    AVG Free Antivirus

My Computer My Computer

At a glance

Windows 11 23H2Intel i7-7700k16 GBIntel 630 onboard
OS
Windows 11 23H2
Computer type
PC/Desktop
Manufacturer/Model
Assembled
CPU
Intel i7-7700k
Motherboard
Asrock Z270 Taichi
Memory
16 GB
Graphics Card(s)
Intel 630 onboard
Sound Card
Onboard
Monitor(s) Displays
Benq 1080p
Screen Resolution
1920*1080
Hard Drives
NVMe, SSD and HDD
Case
Cooler Master
Keyboard
Asus wireless
Mouse
Asus Wireless
Internet Speed
75 Mbps
Browser
Chrome, Edge, Arc
Antivirus
Windows Defender
Blimey ! Kaspersky stands first !
comparisons are 100% useless as these are always made in the past -- any new threat can be "released" at any time. WD is really for domestic machines on the latest versions of W11 as good as it gets - and its real time protection is also good. It's based on the security provided by Ms s Azure cloud servers which now have US military and NSA certification - so you won't get much better than that -- at least on domestic machines.

Unless you are 100% paranoid don't bother with 3rd party stuff whether paid for or not. If it helps "peace of mind" then that's a different argument - but as a technical improvement it's not.

If you have highly sensitive material keep it off the net if you are worried -- and if you need to distribute it - either do it personally or use the old fashioned "Snail Mail". In most countries even J.C himself couldn't find a specific package once it's gone into the mail.

As the Ukranians are showing in their war with Russia -- old fashioned "Analog" systems can still be unbelievably effective even in a high speed digital age.

I loved that pic of them shooting down a Russian drone with an old fashioned wooden crossbow -- the drone's radar couldn't detect the heat pattern that a missile would have generated or employ electronic counter measures against a missile's targeting system


Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
10+ years for me.

Gone are the days of XP when you could earn a full time living removing viruses and other malware from people's computers.
Exactly! Could even earn a good living on the old sevenforums security section when it was relevant haha, But especially since then its gotten so so much better. im gonna say that 97% of virus's give or take are user error, it generally 9/10 really is lack of knowledge on the users part.
 

My Computer My Computer

At a glance

11[email protected]Viper Steelseries 32gb@ 3600mhzGigabyte 2070 Super 8GB, +200 core + 600 memory
OS
11
Computer type
PC/Desktop
Manufacturer/Model
Custom
CPU
[email protected]
Motherboard
Gigabyte Gaming X Z490
Memory
Viper Steelseries 32gb@ 3600mhz
Graphics Card(s)
Gigabyte 2070 Super 8GB, +200 core + 600 memory
Monitor(s) Displays
ASUS 4k HDR, Two 1080p Benq and Samsung
Screen Resolution
3840x2160/2560x1440/1920x1080
Hard Drives
Adata XPG SX8200 PRO 1tb
Samsung EVO 870 500GB
PSU
Corsair RX 650
Case
NZXT h510
Cooling
CM HYPER 212 RGB
Keyboard
Razer Ornata Chroma
Mouse
Steelseries Rival 710

Latest Support Threads

Back
Top Bottom