Do you want to make Windows Defender automatically scan for viruses when plugging in a USB flash drive? In this article on MiniTool, you will know how to make Windows Defender scan USB automatically. Also, this post shows you how to recover Windows Defender deleted files.

Windows Defender is an anti-malware system that is used to identify malware on a Windows system. With Windows Defender enabled, it will detect, remove, or quarantine malware on your computer. However, Windows Defender will not scan USB flash drives for viruses automatically when you plug in a USB drive.

Why does Windows set up like this?

Why Windows Defender Does Not Scan USB Flash Drives for Viruses Automatically

In previous Windows versions, Windows Defender automatically scans USB flash drives when they are plugged in. However, this feature is disabled in recent Windows versions. Microsoft did not make a clear statement on this to explain the reason.

The biggest reason for Windows to cancel this setting may be that Windows Defender automatically scans USBs may cause data loss. If you want to enable Windows Defender to scan USB flash drives for viruses automatically, you can try the following ways.

Fix Windows Defender Exclusions Not Working Windows 11/10
Fix Windows Defender Exclusions Not Working Windows 11/10

Are Windows Defender exclusions not working? This article offers you several useful tips to help you fix it.

Read More

How to Make Windows Defender Scan USB Automatically

Way 1. Using Registry Editor

To make Windows Defender scan USB automatically, you can edit the Windows registry.

Note:

Note: Before making any changes to the registry, you had better back up the registry in case of any accidents because any wrong operations to the registry could lead to computer failure.

Step 1. Press Windows + R key combinations to open Run.

Step 2. Type regedit in the input box and press Enter. Then click Yes in the pop-up UAC window.

Step 3. In the top address bar, copy and paste the following location, then press Enter:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender

Step 4. In the left panel, right-click Windows Defender to select New > Key.

create a new key

Step 5. Change the created key’s name to Scan.

Step 6. Select the new key – Scan. Then in the right panel, right-click any blank space to choose New > DWORD (32-bit) Value. After that, rename the new DWORD to DisableRemovableDriveScanning.

Step 7. Double-click the created DWORD and set its value to 0. After that, click OK to save your changes.

set the value data to 0

Now Windows Defender is enabled to scan your USB drives automatically.

How to Delete Duplicate Files on a USB Flash Drive
How to Delete Duplicate Files on a USB Flash Drive

How to delete duplicate files on a USB flash drive? What if important USB files are deleted by mistake? Read this post to find out the answers.

Read More

Way 2. Using Group Policy Editor

In addition to Registry Editor, you can use Group Policy Editor to make Windows Defender scan USB automatically. Group Policy Editor is a Windows administration tool that allows you to configure important Windows settings.

Step 1. Press Windows + R key combinations. Then type gpedit.msc in the input box and press Enter.

Step 2. In the left panel of the new window, navigate to Computer Configuration > Administrative Templates > Windows Components > Windows Defender Antivirus.

Step 3. In the right panel, double-click the folder of Scan. Then find and double-click Scan removable drives. This feature is not configured by default.

open Scan removable drives

Step 4. In the new scan removable drives window, select Enabled and click Apply.

enable to scan removable drives

Now the Windows Defender is configured to scan USB flash drives for viruses.

How to stop Windows Defender from scanning external drives? You just need to restore “Scan removable drives” to Not Configured or Disabled.

How to Fix USB Drive Keeps Showing Deleted Files Win 10/11
How to Fix USB Drive Keeps Showing Deleted Files Win 10/11

The USB drive keeps showing deleted files? This post shows you how to address this issue and how to delete files from flash drives permanently.

Read More

How to Recover Windows Defender Deleted Files

Now you should know how to make Windows Defender scan USB automatically. However, as said before, doing this may cause USB file loss. Here I want to introduce a piece of free data recovery software to help you recover Windows Defender deleted files from USB drives.

MiniTool Power Data Recovery, the best data recovery software, is designed to recover documents, pictures, videos, audio, emails, etc. from internal hard drives, external hard drives, USB flash drives, CDs/DVDs, and other storage devices.

It can help to recover files in various data loss and file recovery situations. For example, when the Recycle Bin is grayed out and you cannot restore your data from the Recycle Bin, you can use MiniTool Power Data Recovery to get deleted files back. It not only allows you to scan your drives and devices, but also supports scanning the desktop, the Recycle Bin, and a specific folder individually.

Now you can click the button below to free download MiniTool Power Data Recovery to carry out USB data recovery.

MiniTool Power Data Recovery FreeClick to Download100%Clean & Safe

the main interface of MiniTool Power Data Recovery

For more information about Windows file loss and data recovery, you can refer to: Fix Windows Deleting Files Automatically & Recover Data.

Tips:

Tip: MiniTool Power Data Recovery Free allows you to recover 1 GB of files without paying a penny. To recover unlimited files, you need to choose a registered edition, such as MiniTool Power Data Recovery Personal Ultimate.

[Fixed]: Files Get Deleted When Left-Clicking in Windows
[Fixed]: Files Get Deleted When Left-Clicking in Windows

Are your files get deleted when left-clicking? If yes, you can read this post to get several feasible solutions to fix it and recover left-click deleted files.

Read More

Bottom Line

This article shows you how to make Windows Defender scan USB automatically and how to recover Windows Defender deleted files.

If you have any questions or suggestions about USB virus scanners or MiniTool Power Data Recovery, please feel free to let us know by leaving your comments below or sending an email to [email protected].

  • linkedin
  • reddit