Files
2025-05-19 15:19:36 -04:00

8 lines
166 B
PowerShell

$antivirusStatus = Get-MpComputerStatus
if ($antivirusStatus.AntivirusEnabled -eq $false) {
Write-Output "Antivirus is disabled"
exit 1
} else {
exit 0
}