Defender for Endpoint
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.
Where it fits: lab 2 of 3
Respond to endpoint threats and coexist with other antivirus. Investigate a ransomware attack, isolate devices without breaking management tools, and run Defender next to a third-party antivirus.
- Investigate a Simulated Ransomware Attack 120 min
- Configure Isolation Exclusions in Defender for Endpoint 45 min
- Defender AV Modes, MDA Integration & Third-Party AV Coexistence 3 h
What this lab covers
Isolation exclusions in Microsoft Defender for Endpoint allow you to exempt specific processes, IP addresses, URLs, or services from network isolation when a device is isolated using the selective isolation response action. This lab guides you through understanding isolation modes, enabling the isolation exclusions feature, building exclusion rules, applying selective isolation to a device, and verifying that excluded communications function while broader network access remains blocked.
The enterprise scenario
During an incident response, a SOC analyst isolates a compromised endpoint to prevent lateral movement. However, the remote remediation tool (e.g., a third-party EDR agent or SCCM) must remain connected to push cleanup scripts, and the SIEM agent must continue forwarding logs. Without exclusions, isolating the device breaks these tools, forcing analysts to physically access the machine or release full isolation prematurely - both increasing risk and slowing response.
By configuring isolation exclusions, the organization can maintain critical management and monitoring connections while keeping the device contained. This ensures continuous telemetry, remote remediation capability, and compliance with audit requirements - all without exposing the network to further risk from the compromised device.
What you will learn
- Understand the difference between full isolation and selective isolation modes
- Enable the Isolation Exclusion feature in Defender for Endpoint settings
- Define global exclusion rules with process paths, service names, remote IPs, and directions
- Apply selective isolation with exclusions to a specific device via the portal
- Apply selective isolation via the Isolate Machine API with the Selective isolation type
- Understand AND-based exclusion logic and how multiple rules interact
- Validate that excluded communications work while general network access is blocked
Before you start
- Microsoft Defender for Endpoint Plan 1 or Plan 2 license
- Security Admin or Manage Security settings permissions in the Microsoft Defender portal
- At least one onboarded device running Windows 11, Windows 10 version 1703+, Windows Server 2016+, Windows Server 2012 R2, macOS, or Azure Stack HCI OS version 23H2+
- Test device (non-production) to safely practice isolation and verify connectivity
- Access to the Microsoft Defender portal at security.microsoft.com
The 7 steps
- Understand Isolation Modes
- Enable the Isolation Exclusion Feature
- Define Global Exclusion Rules
- Understand the Exclusion Logic
- Apply Selective Isolation via the Portal
- Apply Selective Isolation via the API
- Validate and Test Exclusions
Related labs
Onboard a Windows Server Fleet to MDE
Plan deployment rings, create onboarding packages via Group Policy and Intune, deploy to Windows Server 2019/2022/2025, verify sensor health, and troubleshoot onboarding failures across your enterprise fleet.
Configure Attack Surface Reduction Rules
Deploy ASR rules in audit mode via Intune, analyze impact reports, identify false positives, transition to block mode, configure per-rule exclusions, and monitor effectiveness with advanced hunting queries.
Network Protection & Custom Indicators for IP/URL/Domain
Deploy network protection and custom IP, URL and domain indicators, handle SmartScreen dependencies and QUIC, configure warn and block modes, resolve policy conflicts and hunt network protection events with KQL.
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.