Defender for Endpoint
Device Control: USB and Removable Storage Management
Deploy deny-all, allow-authorized and read-only device control policies, target devices by instance path or VID and PID, scope policies to users, and monitor USB activity in advanced hunting.
Where it fits: lab 4 of 7
Onboard and harden Windows and Linux endpoints. Onboard devices to Defender for Endpoint, block risky behavior with ASR, network protection, device control and App Control, and cover Linux.
- Onboard a Windows Server Fleet to MDE 75 min
- Configure Attack Surface Reduction Rules 90 min
- Network Protection & Custom Indicators for IP/URL/Domain 120 min
- Device Control: USB and Removable Storage Management 90 min
- Deploy & Tune Endpoint Detection Policies 2.5 h
- App Control for Business: End-to-End Deployment 3 h
- Secure Linux Endpoints with Entra ID, Intune and Defender for Endpoint 9.5 h
What this lab covers
Device control in Microsoft Defender for Endpoint lets you enforce granular access policies on removable storage devices — USB drives, SD cards, CD/DVD drives, and more — across your Windows endpoints. Policies are built from groups (device identifiers) and rules (access actions), deployed through Microsoft Intune OMA-URI settings or local registry for test environments. This lab walks you through every stage: from checking the default state, through building layered policies that deny-all, authorize specific devices, and restrict access by device model or user identity.
The enterprise scenario
A financial services firm needs to prevent data exfiltration via USB drives while still allowing auditors to use company-issued, serialized USB keys to transfer reports. Additionally, contractors connecting personal USB drives must be limited to read-only access. The IT security team must enforce all of this without deploying a separate DLP agent, using only what is already included in their Microsoft Defender for Endpoint Plan 2 license.
This lab mirrors exactly that scenario: deny all USB storage by default, whitelist a specific device by its hardware path, allow a second device model in read-only mode, and optionally restrict each policy to specific users or groups — all through Intune, with full audit trails in Advanced Hunting.
What you will learn
- Verify the default state of device control using Get-MpComputerStatus and Advanced Hunting
- Extract USB device properties (InstancePathId, VID_PID, SerialNumber) via Device Manager and PowerShell
- Enable device control and set default enforcement to Deny via Intune OMA-URI
- Build and deploy a deny-all removable storage policy with audit notifications
- Create an authorized USB group and exclude it from the deny-all rule to grant full access
- Configure read-only access for a device group identified by Vendor ID and Product ID
- Add user SID conditions to policies to restrict access by identity
- Monitor all device control events in Advanced Hunting and the Device Control report
Before you start
- Microsoft Defender for Endpoint Plan 1 or Plan 2 — Plan 2 required for Advanced Hunting queries
- Microsoft Intune (Intune Plan 1 or Microsoft 365 E3/E5) — or local Administrator access for registry-based testing
- Security Admin or Global Admin role in the Microsoft Defender portal and Intune admin center
- At least one Windows 10 (version 1903+) or Windows 11 device onboarded to MDE and enrolled in Intune
- Two USB flash drives for testing — label one "Authorized", the other "Unauthorized"
- PowerShell 5.1+ available on the test device, run as Administrator
- Access to the Microsoft Defender portal and Microsoft Intune admin center
The 9 steps
- Check the Default State of Device Control
- Discover Your USB Device Properties
- Enable Device Control and Set Default Enforcement
- Deny All Removable Storage with Audit Notifications
- Allow Access for Authorized USB Devices
- Configure Read-Only Access for Specific USB Devices
- Restrict Access by User or Group (SID Conditions)
- Monitor and Investigate with Advanced Hunting & Device Control Report
- Layer Microsoft Purview Endpoint DLP for Content-Aware USB Control
Related labs
Investigate a Simulated Ransomware Attack
Respond to a simulated ransomware incident in Microsoft Defender for Endpoint. Analyze the device timeline, trace the process tree, use Live Response for remote forensics, isolate the compromised device, hunt for lateral movement, remediate the threat, and document findings for an incident report.
Configure Isolation Exclusions in Defender for Endpoint
Define global isolation exclusion rules, apply selective isolation from the portal or the API, and confirm that critical services keep working while a compromised device stays contained.
Defender AV Modes, MDA Integration & Third-Party AV Coexistence
Master all four Microsoft Defender Antivirus operating modes - Active, Passive, EDR in Block Mode, and Disabled. Understand exactly which MDE capabilities survive when CrowdStrike (or another third-party AV) is the primary engine.