8 lines
179 B
PowerShell
8 lines
179 B
PowerShell
|
|
if((Get-MpComputerStatus).RealTimeProtectionEnabled -eq "True") {
|
|
Write-Output "Device Compliant"
|
|
exit 0
|
|
} else {
|
|
Write-Output "Device Non-Compliant"
|
|
exit 1
|
|
} |