Manually exclude drive letter in windows defender

1

Is there a way to manually exclude a drive from Windows Defender in Windows 10? I know how to do it with the control panel. But the problem is that this requires the drive to be plugged in, but if I do that Defender will immediately start to remove files from the drive.

In other words, I need to exclude a drive letter before I plug the drive in.

Arete

Posted 2016-02-11T20:56:23.533

Reputation: 830

1You can mount a .ISO, any .ISO, and setup the exclusion. After you do that, unmount the .ISO, and assigned the drive the same drive letter. You can also configure defender not to act on its own without user intervention. – Ramhound – 2016-02-11T21:04:57.627

2temporarily disable runtime scanning, connect the drive, exclude the drive in option and turn runtime scanning one – magicandre1981 – 2016-02-12T05:23:38.270

Answers

2

Here is another option. Make a batch file like this:

REG ADD "HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /v "F:\\\" /t REG_DWORD /d 0 /f

Configure a basic task in Task Scheduler and set the .bat file to run as SYSTEM with highest privileges.

This adds F:\ drive to the exclusions list.

This can be verified using the Registry Editor. Once done, the added task can be deleted.

Or create a REG file as in add windows defender service exception for internet radio ... and run it using scheduler (regedit.exe /s filename.reg) or (reg.exe import filename.reg).

w32sh

Posted 2016-02-11T20:56:23.533

Reputation: 8 611

First suggestion works like a charm. Thanks a lot! – Arete – 2016-02-15T14:43:54.607