Skip to content

Instantly share code, notes, and snippets.

@chankruze
Created June 14, 2022 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chankruze/846f44d3f44d7276edce9ed530f469a0 to your computer and use it in GitHub Desktop.
Save chankruze/846f44d3f44d7276edce9ed530f469a0 to your computer and use it in GitHub Desktop.

How to turn off Windows Defender in Windows 10/11 permanently

Step 1. Boot into safe mode

Click on Windows Start and search for msconfig. Run System Configuration as administrator.

image

You can also start the program Run. Type msconfig and click on OK.

image

Select the tab Boot. In the section Boot options, enable Safe boot. Click on OK.

image

Click on Restart.

image

Step 2. Turn off Real-time protection

As shown in the previous step, make sure that Real-time protection is Off.

image

Step 3. Autoruns for Windows

Download Autoruns for Windows. Extract the zip file and start the executable Autoruns64.exe. If you are running Windows 10 32-bit, start Autoruns.exe.

image

Step 4. Enable Windows Services in Autoruns

Go to the tab Services. There will be not many services shown. That’s because Windows services are not showing by default.

image

Click in the menu bar on Options. Uncheck Hide Windows Entries. It will show the Windows services in the list view.

image

Step 5. Uncheck Windows Defender Antivirus Service

Search for WinDefend and uncheck the checkbox. Unchecking will prevent the Windows Defender automatic startup after every reboot.

image

Step 6. Boot into normal startup

Start the application msconfig.

image

Select the Normal startup. Click on OK.

image

Click on Restart.

image

Verify that Windows Defender is kept turned off after Windows 10/11 restart

After a restart, start Task Manager. There is no more Windows Defender service running.

image

Start Windows Security and have a look at Virus & threat protection. You will see that there is a spinning icon, or the status is showing as unknown. That’s because it’s fetching the information.

image

Give it a couple of minutes. After that, you will see that Virus & threat protection is disabled.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment