MD-102 • Practice Test 28
Free MD-102 practice test — 15 questions with explanations. Set 28. No signup required.
Refer to the exhibit. A PowerShell script is used to check the encryption compliance state of Windows devices managed by Intune. Some devices return a State of 'notApplicable' for the Encryption setting. What does this indicate?
Refer to the exhibit.
```
$devices = Get-MgDeviceManagementManagedDevice -Filter "operatingSystem eq 'Windows'"
foreach ($device in $devices) {
$compliance = Get-MgDeviceManagementDeviceCompliancePolicySettingStateSummary -ManagedDeviceId $device.Id
Write-Output $device.DeviceName
$compliance.SettingStates | Where-Object {$_.SettingName -eq "Encryption"} | Select-Object State
}
```