The Get-MgDeviceManagementDeviceConfiguration cmdlet retrieves all device configuration profiles from Microsoft Intune through Microsoft Graph. These profiles define and enforce policies on managed devices, such as password requirements, encryption, and VPN settings. By using this cmdlet, admins can quickly list and review existing device configurations and export details for compliance or troubleshooting. It is particularly useful when managing large environments, where accessing configurations directly from the Intune portal can get time-consuming.
Install the Microsoft Graph PowerShell module and connect with device management read permissions:
Install-Module Microsoft.Graph -Scope CurrentUser
Connect-MgGraph -Scopes "DeviceManagementConfiguration.Read.All"
To retrieve a list of profiles, simply run:
Get-MgDeviceManagementDeviceConfiguration
Get-MgDeviceManagementDeviceConfiguration | Select-Object Id, DisplayName, Description
Get-MgDeviceManagementDeviceConfiguration -DeviceConfigurationId "profile-id"
Get-MgDeviceManagementDeviceConfiguration -Filter "contains(displayName,'WiFi')"
The following are some essential parameters that can be used along with the Get-MgDeviceManagementDeviceConfiguration cmdlet:
| Parameter | Description |
|---|---|
| -DeviceConfigurationId | The unique ID of the specific device configuration profile. |
| -Top | Limits the number of results returned. |
| -Filter | Refines results with an OData filter string. |
| -Expand | Includes related entities inline with results. |
| -Select | Returns only specified properties. |
ADManager Plus, an identity governance and administration solution with comprehensive Microsoft Entra ID management and reporting capabilities, simplifies complex admin tasks from a single, user-friendly console: