Get-NMMDeviceCompliance¶
Gets device compliance status.
Syntax¶
Description¶
The Get-NMMDeviceCompliance cmdlet retrieves Intune compliance policy status for a device.
Beta API
This cmdlet uses the v1-beta API.
Parameters¶
-AccountId¶
The NMM account ID.
| Type | Int32 |
| Required | True |
| Pipeline Input | True (ByPropertyName) |
-DeviceId¶
The Intune device ID.
| Type | String |
| Required | True |
| Pipeline Input | True (ByPropertyName) |
Examples¶
Example 1: Get compliance status¶
Outputs¶
PSCustomObject
| Property | Type | Description |
|---|---|---|
| overallStatus | String | Compliant, NonCompliant |
| policies | Object[] | Applied policies |
| lastEvaluated | DateTime | Last evaluation |