How to Fix Microsoft Defender Configuration Enforcement Connectivity Errors
Question details
The user needs to resolve a connectivity error preventing a newly onboarded device from communicating with required Microsoft cloud endpoints.

- Product
- Microsoft Defender for Endpoint
- Device & OS
- not provided
- Scenario
- Onboarding a device to Microsoft Defender and attempting to synchronize security configuration policies.
- Observed behavior
- A configuration enforcement error is triggered because the device is unable to reach required cloud endpoints, such as *.dm.microsoft.com, likely due to network blockages.
Ensure you have administrative privileges on the affected device and access to your corporate firewall, proxy, or VPN configuration settings before making network changes.
Allow Outbound Traffic to Microsoft Cloud Endpoints
Create or modify an outbound firewall rule to permit TCP port 443 traffic to Microsoft Defender domains, resolving the primary cause of connectivity failures.
Microsoft Defender for Endpoint requires uninterrupted access to specific cloud endpoints to enforce security configurations. If these endpoints are blocked by a local or network firewall, the device cannot receive policy updates.
Access your network firewall configuration interface or open Windows Defender Firewall with Advanced Security on the local device.
Navigate to Outbound Rules and select 'New Rule'. Choose 'Custom' to specify precise network conditions.
Set the protocol to TCP and the remote port to 443 (HTTPS). In the scope section, specify the remote domain as *.dm.microsoft.com.
Set the action to 'Allow the connection', apply the rule to the appropriate network profiles, and restart the device to trigger a new connection attempt.

Verify DNS, Proxy, and Antivirus Settings
Check intermediary network configurations and third-party security software that might be intercepting or blocking outbound traffic to Microsoft.
Looking for a Reliable and Secure Office Suite? Try WPS Office
While you troubleshoot system network configurations and security policies, consider WPS Office as a lightweight, secure, and completely free alternative to Microsoft Office. It offers a familiar interface and seamless compatibility with all your important documents.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded executable file and follow the simple on-screen instructions to complete the setup.
- 3. Open Your Documents: Launch WPS Office and instantly open your existing Microsoft Office files with perfect formatting preservation.

Frequently Asked Questions
Why does Microsoft Defender need access to *.dm.microsoft.com?
This endpoint is required for device management and configuration enforcement. Without access to this cloud endpoint, the device cannot receive security policy updates or report its status back to the Microsoft cloud.
How can I test if a proxy or firewall is blocking the connection?
You can test connectivity by opening PowerShell as an administrator and running the command 'Test-NetConnection -ComputerName dm.microsoft.com -Port 443'. If the connection fails, your network is likely blocking the traffic.
Should these firewall rules be configured in Microsoft Intune or locally?
If you are managing devices centrally, it is best to deploy these network rules via Intune or your organization's centralized firewall management system. For unmanaged or isolated devices, configuring the local Windows Defender Firewall is sufficient.




