Files
Intune/intune/Externally Sourced Remediations/MicrosoftDefenderAV/Get-SecurityIntelligenceUpdates/Detect_SignatureIntelligenceUpdates.ps1
2025-05-19 15:19:36 -04:00

11 lines
364 B
PowerShell

# Check if security intelligence updates are up-to-date
$lastUpdate = Get-MpComputerStatus | Select-Object -ExpandProperty AntivirusSignatureLastUpdated
if ($lastUpdate -lt (Get-Date).AddDays(-1)) {
Write-Output "Security intelligence updates are outdated."
exit 1
} else {
Write-Output "Security intelligence updates are up-to-date."
exit 0
}