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

15 lines
347 B
PowerShell

# Detection Script: Detect_Malware.ps1
# Perform a quick scan using Microsoft Defender
Start-MpScan -ScanType QuickScan
# Check the scan results
$scanResults = Get-MpThreatDetection
if ($scanResults) {
Write-Output "Malware detected: $($scanResults.ThreatName)"
exit 1
} else {
Write-Output "No malware detected."
exit 0
}