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.

2
  • 1
    You 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
    Commented Feb 11, 2016 at 21:04
  • 2
    temporarily disable runtime scanning, connect the drive, exclude the drive in option and turn runtime scanning one Commented Feb 12, 2016 at 5:23

1 Answer 1

3

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).

1
  • First suggestion works like a charm. Thanks a lot!
    – Arete
    Commented Feb 15, 2016 at 14:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .