How to Scan a File or Folder with Windows Defender on Windows 10

To scan a file or folder on Windows 10, the fastest method is to right-click it in File Explorer and choose Scan with Microsoft Defender. Windows Security will check the selected item and show the result. You can also use a Custom scan from the Windows Security app when you want to scan a whole folder, USB drive, or another location.

Important: Windows 10 reached end of support on October 14, 2025. These scanning tools can still work on a Windows 10 PC, but antivirus protection is not a replacement for operating-system security updates. Microsoft recommends moving to Windows 11 when possible or using an eligible Windows 10 Extended Security Updates option. See Microsoft's Windows 10 end-of-support guidance.

Scan a file or folder from File Explorer

This is the best option when you downloaded one file, received an attachment, copied something from a USB drive, or simply want to check a specific folder before opening its contents.

  1. Open File Explorer and browse to the file or folder you want to check. Select the item, but do not open or run it if you are scanning it because you are unsure whether it is safe.
Windows 10 File Explorer with an installer file selected in the Downloads folder
Select the file or folder you want Microsoft Defender to scan.
  1. Right-click the item, then select Scan with Microsoft Defender. On Windows 10 this normally appears directly in the classic context menu. Microsoft's current support page covers the same on-demand scan feature for Windows 10 and Windows 11: Scan an item with Windows Security.
Windows 10 File Explorer context menu with Scan with Microsoft Defender highlighted
The File Explorer context menu provides a direct Microsoft Defender scan command.
  1. Wait for the scan to finish. Windows Security shows whether it found a threat. If the result is clean, you can close Windows Security. If Defender detects something, review the recommended action before using the file.
Windows Security Virus and threat protection page showing no current threats after a scan
Windows Security displays the latest scan status and any detected threats.

Run a Custom scan from Windows Security

A Custom scan is useful when the context-menu command is inconvenient or when you want to check an entire folder or removable drive. Microsoft describes a Custom scan as an on-demand scan of files and folders you specify.

  1. Open Start, search for Windows Security, open it, and select Virus & threat protection.
Windows 10 Windows Security Virus and threat protection page with scan controls
Open Virus & threat protection to reach Defender's manual scan controls.
  1. Select Scan options.
  2. Choose Custom scan, then select Scan now.
Windows Security Scan options page with Custom scan selected
Custom scan lets you choose the location that Microsoft Defender checks.
  1. In the folder picker, select the folder or drive you want to scan, then choose Select Folder. The scan starts immediately.
Windows 10 folder selection dialog with the Downloads folder selected for a custom scan
Select the folder or drive that you want to include in the custom scan.
  1. When the scan finishes, review the result in Windows Security. You can also open Protection history to review detections and actions Defender has taken.
Windows Security Protection history showing a completed custom scan with no threats found
Protection history helps you review Defender detections and recent security actions.

Which Microsoft Defender scan should you use?

Scan methodBest for
File Explorer scanOne suspicious file or folder that you can locate quickly
Custom scanA chosen folder, USB drive, or other specific location
Quick scanCommon malware locations and startup-related areas
Full scanA deeper check of files and programs across the device; it can take much longer
Microsoft Defender Offline scanPersistent malware that may be harder to detect while Windows is running; this option restarts the PC

Microsoft's Virus & threat protection documentation explains the available scan types. For routine protection, keep Real-time protection enabled. Defender monitors files and programs as they are accessed or executed, while manual scans are useful when you want an immediate second check.

If “Scan with Microsoft Defender” is missing

Open Windows Security > Virus & threat protection and check which antivirus provider is active. If you use a non-Microsoft antivirus product, Microsoft Defender Antivirus can switch to disabled mode automatically, so its File Explorer scan command may not be available. Do not disable your active antivirus just to make the Defender menu item appear.

If Defender finds a threat

Do not open the file. Open Protection history and review the detection. Defender may quarantine or block the item, or it may ask you to choose an action. Only use Allow on device when you are confident the detection is a false positive; allowing a real threat can put the device and your data at risk. Microsoft notes that Protection history keeps events for two weeks, so review important detections promptly.

Windows Security Protection history with recent Defender scan and protection events
Use Protection history to review Defender actions after a scan.

The key point is simple: for a single file or folder, use the File Explorer Scan with Microsoft Defender command. Use a Custom scan when you need to target a larger location. There is no need to turn off real-time protection before running either type of scan.

Leave a Comment

How to Play Minecraft Offline on Windows 10: Java and Bedrock

How to Play Minecraft Offline on Windows 10: Java and Bedrock

Prepare Java or Bedrock on Windows 10 for offline single-player, enable the right Xbox setting, and back up your local Minecraft worlds.

How to Change a File Type Icon in Windows 10

How to Change a File Type Icon in Windows 10

Change a file type icon in Windows 10 while keeping its current default app. Follow the FileTypesMan steps, handle icon picker issues, and restore the original setting.

How to Set PhysX Configuration in NVIDIA Control Panel on Windows 10

How to Set PhysX Configuration in NVIDIA Control Panel on Windows 10

Set PhysX in NVIDIA Control Panel on Windows 10, understand Auto-select vs. CPU or GPU, and learn when to use Windows Graphics settings instead.

Best Free Office Software: 6 Alternatives to Word, Excel, and PowerPoint

Best Free Office Software: 6 Alternatives to Word, Excel, and PowerPoint

Compare six free office suites for documents, spreadsheets, and presentations, including browser-based collaboration and offline desktop options.

How to Get Line Numbers in Notepad on Windows 10

How to Get Line Numbers in Notepad on Windows 10

Turn on Notepad’s Status Bar to see the current line and column in Windows 10, troubleshoot a disabled option, and learn when you need a line-number gutter.

How to Show a Message Box on Windows 10 (PowerShell and Batch)

How to Show a Message Box on Windows 10 (PowerShell and Batch)

Display a custom Windows dialog with a short PowerShell command, Command Prompt, or a reusable .bat or .ps1 file, including a title, icon, and buttons.

How to Fix Windows 10 Update Error 0x80071160

How to Fix Windows 10 Update Error 0x80071160

Fix Windows 10 update error 0x80071160 with Microsoft’s troubleshooter, a safe update-cache reset, DISM and SFC repairs, and a careful manual-install check.

How to Install Windows 10 From a UEFI Bootable USB

How to Install Windows 10 From a UEFI Bootable USB

Create a Windows 10 UEFI installer with Microsoft’s Media Creation Tool or Rufus, then boot and install safely without wiping the wrong drive.

How to Hide Microsoft Edge Tabs from Alt+Tab in Windows 10

How to Hide Microsoft Edge Tabs from Alt+Tab in Windows 10

Stop individual Edge tabs from crowding the Windows 10 Alt+Tab switcher. Change one Multitasking setting, limit recent tabs, and check why the option may be missing.

How to Fix PDF Thumbnails Not Showing in Windows 10

How to Fix PDF Thumbnails Not Showing in Windows 10

Enable Adobe’s PDF thumbnail handler, correct File Explorer’s icon settings, rebuild the thumbnail cache, and check OneDrive files that are not stored locally.