summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWindowsAddict2024-09-04 23:14:49 +0000
committerWindowsAddict2024-09-04 23:14:49 +0000
commit5d8a4634754d632df13b697c4cae96aecc730480 (patch)
tree238a51493a0ffb1e621f3f0ed23a55b681acac54
parent7044f37b441faba28ad583a14391029befc34ae5 (diff)
downloadMicrosoft-Activation-Scripts-5d8a4634754d632df13b697c4cae96aecc730480.zip
Check signature of clipup.exe in Server Cor/Acor editions
-rw-r--r--MAS/All-In-One-Version-KL/MAS_AIO.cmd15
-rw-r--r--MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd15
2 files changed, 26 insertions, 4 deletions
diff --git a/MAS/All-In-One-Version-KL/MAS_AIO.cmd b/MAS/All-In-One-Version-KL/MAS_AIO.cmd
index ce1047c..f9d7f5e 100644
--- a/MAS/All-In-One-Version-KL/MAS_AIO.cmd
+++ b/MAS/All-In-One-Version-KL/MAS_AIO.cmd
@@ -3693,8 +3693,19 @@ if not exist "!_work!\clipup.exe" (
echo clipup.exe doesn't exist in Server Cor/Acor [No GUI] versions.
echo The file is required for KMS38 activation.
echo Check the below page for instructions on how to activate it.
-set fixes=%fixes% %mas%kms38
-echo %mas%kms38
+call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%kms38"
+goto dk_done
+)
+)
+
+:: Check file signature
+
+if defined a_cor (
+%psc% "if ((Get-AuthenticodeSignature -FilePath '!_work!\clipup.exe').Status -ne 'Valid') {Exit 3}" %nul%
+if !errorlevel!==3 (
+%eline%
+echo Valid digital signature not found in clipup.exe file.
+call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
goto dk_done
)
)
diff --git a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
index fb870f5..ec7d965 100644
--- a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
+++ b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
@@ -444,8 +444,19 @@ if not exist "!_work!\clipup.exe" (
echo clipup.exe doesn't exist in Server Cor/Acor [No GUI] versions.
echo The file is required for KMS38 activation.
echo Check the below page for instructions on how to activate it.
-set fixes=%fixes% %mas%kms38
-echo %mas%kms38
+call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%kms38"
+goto dk_done
+)
+)
+
+:: Check file signature
+
+if defined a_cor (
+%psc% "if ((Get-AuthenticodeSignature -FilePath '!_work!\clipup.exe').Status -ne 'Valid') {Exit 3}" %nul%
+if !errorlevel!==3 (
+%eline%
+echo Valid digital signature not found in clipup.exe file.
+call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
goto dk_done
)
)