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.

| improve this question | |
  • 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 Feb 11 '16 at 21:04
  • 2
    temporarily disable runtime scanning, connect the drive, exclude the drive in option and turn runtime scanning one – magicandre1981 Feb 12 '16 at 5:23
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).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.