summaryrefslogtreecommitdiff
path: root/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
diff options
context:
space:
mode:
authorWindowsAddict2025-04-12 22:55:10 +0000
committerWindowsAddict2025-04-12 22:55:10 +0000
commit3b739d7e2bac5ac01c0dac87855ca1fb72c6b54b (patch)
tree050f5a0230cbd58db99e79ada3438db254c2585d /MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
parent8673fbbfdabf9fdf34823c4e276ed3a4ef4095ba (diff)
downloadMicrosoft-Activation-Scripts-3b739d7e2bac5ac01c0dac87855ca1fb72c6b54b.zip
Add malware check in Powershell test
Diffstat (limited to 'MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd')
-rw-r--r--MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd12
1 files changed, 11 insertions, 1 deletions
diff --git a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
index f352fc1..31e5bb0 100644
--- a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
+++ b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
@@ -248,7 +248,6 @@ cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
REM check LanguageMode
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
-%eline%
echo FullLanguage mode not found in PowerShell. Aborting...
echo If you have applied restrictions on Powershell then undo those changes.
echo:
@@ -264,6 +263,17 @@ echo Windows Powershell is needed for MAS but it seems to be replaced with Power
goto dk_done
)
+REM check for Mal-ware that may cause issues with Powershell
+
+for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
+echo "%%f"
+echo Mal%blank%ware found, PowerShell is not working properly.
+echo:
+set fixes=%fixes% %mas%remove_mal%w%ware
+call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
+goto dk_done
+)
+
REM check antivirus and other errors
echo PowerShell is not working properly. Aborting...