Additional Script Updates
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user