From c817ae8bd984a5db42006ca16a0e68d9020db3c6 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Wed, 2 Jul 2025 23:46:34 +0530 Subject: Add detection for Microsoft Defender for Endpoint --- MAS/Separate-Files-Version/Activators/HWID_Activation.cmd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'MAS/Separate-Files-Version/Activators/HWID_Activation.cmd') diff --git a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd index 865dd2f..5f70d82 100644 --- a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd @@ -282,6 +282,10 @@ echo PowerShell is not working properly. Aborting... if /i "!tstresult2!"=="FullLanguage" ( echo: echo Your antivirus software might be blocking the script, or PowerShell on your system might be corrupted. +echo: +sc query sense | find /i "RUNNING" %nul% && ( +echo Installed Antivirus - Microsoft Defender for Endpoint +) cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}""" ) -- cgit v1.2.3