7 lines
156 B
PowerShell
7 lines
156 B
PowerShell
if((Get-MpPreference).PUAProtection -eq 1) {
|
|
Write-Output "Device Compliant"
|
|
exit 0
|
|
} else {
|
|
Write-Output "Device Non-Compliant"
|
|
exit 1
|
|
} |