How to Disable Real-time Protection in Windows 10

[This can be dangerous, use this information at your own risk… like everything you find on the Internet*]
[*The Internet does contain factual data.]

(My Lenovo ThinkPad T470p struggles like a drowning rat when real-time protection is on, and I take reasonable care to not install crap, and I backup my data with every lunar eclipse.)

Click on the Windows menu and type “Windows Security Settings” and launch the application. Next, click on “Virus & threat protection”, and click “Manage Settings”

If Real-time protection is enabled, the screen will look like this:

If the option isn’t greyed-out, you can probably click on the toggle to select “Off”. You may need to be logged in as an administrative user to do so. Additionally, I’m going to assume you are not running any other anti-virus software, such as McAfee or Avast (oh god, don’t run those)

How to Make a Batch file to Disable Real-time Protection

Open a text editor such as Notepad and paste this single line:

PowerShell Set-MpPreference -DisableRealtimeMonitoring 1

Save the file, using a name like DisableRealtimeMonitoring.bat

The .bat extension means “batch file” which is similar to an ancient incantation of a recipe containing fairy dust and unicorn-hoof powder, used by magicians and unfortunate Windows users.

To run the file, right-click and choose “Run as administrator”

How to Disable Microsoft Defender’s Real-time Protection when your Machine Starts

Copy the above file into your startup items folder. When your machine starts, the file will run, and hopefully disable real-time protection.

To quickly navigate to your startup folder hit the keys Windows+R to open the “Run” box, type “shell:startup,” and then press Enter.


This will open the startup folder. Copy the above batch file into the folder and have a great day!