How to Retrieve Exact Microsoft Defender for Endpoint Configuration Settings
Question details
The user needs to extract the exact policy states (e.g., Not Configured, Audit, Block) for Microsoft Defender for Endpoint configurations.

- Product
- Microsoft Defender for Endpoint
- Device & OS
- not provided
- Scenario
- Querying Defender for Endpoint configuration assessment APIs to audit detailed security policy states across a network.
- Observed behavior
- The current secure configuration assessment API only reports whether a setting is applicable and compliant, but fails to show the specific granular policy state.
Ensure you have the appropriate global administrator or security reader permissions in your Microsoft 365 Defender tenant before attempting to query endpoint configuration data.
Consult Microsoft Enterprise Support Channels for API Guidance
Because retrieving granular policy states requires specialized Microsoft Graph resources or management endpoints, you should route this enterprise-level query to Microsoft's specialized developer communities.
The standard secure configuration assessment API is built for high-level compliance checks. To extract specific states like 'Audit' or 'Block', you typically need to use Microsoft Graph APIs targeting device management or Intune policies.
Consumer Office forums cannot resolve advanced enterprise security queries, so leveraging dedicated administrator communities is the fastest path to a working script or API endpoint.
Navigate to the official Microsoft Q&A platform and search for the 'Microsoft Defender for Endpoint' tag.
Create a new thread asking Microsoft specialists for the specific Microsoft Graph endpoint or API resource needed to retrieve exact policy states.
Browse the Microsoft Tech Community forums for 'Defender for Endpoint'. Administrators frequently share undocumented endpoints or PowerShell scripts for advanced policy retrieval.

Looking for a Lightweight, Secure Office Suite?
While managing complex Microsoft security policies and enterprise endpoints, you might want a simpler, cost-effective document solution for your team. WPS Office offers a highly secure, easy-to-deploy alternative to heavy enterprise suites without sacrificing functionality.
- 1. Download the Installer: Visit the official WPS website and download the free WPS Office suite for your endpoints.
- 2. Deploy Across Your Network: Install WPS Office across your devices. Its lightweight design ensures minimal impact on system resources.
- 3. Open Existing Documents: Double-click any standard Microsoft Office format (.docx, .xlsx, .pptx) to open and edit seamlessly.

Frequently Asked Questions
Why does the Defender API only show compliance and not the exact policy state?
The secure configuration assessment API is specifically designed for high-level compliance tracking and reporting. Granular settings like 'Audit' or 'Block' are managed differently and require specific Microsoft Graph endpoint or Intune policy queries.
Can I use Microsoft Graph API to check exact Defender settings?
Yes, the Microsoft Graph API provides comprehensive access to device management and security policies. However, you need to query the correct resource paths and ensure your application has specific permissions like DeviceManagementConfiguration.Read.All.
Where can I find sample scripts for querying Defender policies?
The Microsoft Tech Community and official Microsoft Defender GitHub repositories are excellent resources. They often host sample PowerShell scripts and API queries shared by Microsoft engineers and community security experts.




