summaryrefslogtreecommitdiff
path: root/MAS
diff options
context:
space:
mode:
authorWindowsAddict <[email protected]>2024-09-05 05:11:08 +0530
committerWindowsAddict <[email protected]>2024-09-05 05:11:08 +0530
commit0afb09cbd1f31f15f82f07b10eb2b5014c9c3dca (patch)
treeaee8ddcb29d5d6710d1d24040f21092426082a64 /MAS
parent5d8a4634754d632df13b697c4cae96aecc730480 (diff)
downloadMicrosoft-Activation-Scripts-0afb09cbd1f31f15f82f07b10eb2b5014c9c3dca.zip
Use IsOSBinary check
Diffstat (limited to 'MAS')
-rw-r--r--MAS/All-In-One-Version-KL/MAS_AIO.cmd2
-rw-r--r--MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd2
2 files changed, 2 insertions, 2 deletions
diff --git a/MAS/All-In-One-Version-KL/MAS_AIO.cmd b/MAS/All-In-One-Version-KL/MAS_AIO.cmd
index f9d7f5e..28fb449 100644
--- a/MAS/All-In-One-Version-KL/MAS_AIO.cmd
+++ b/MAS/All-In-One-Version-KL/MAS_AIO.cmd
@@ -3701,7 +3701,7 @@ goto dk_done
:: Check file signature
if defined a_cor (
-%psc% "if ((Get-AuthenticodeSignature -FilePath '!_work!\clipup.exe').Status -ne 'Valid') {Exit 3}" %nul%
+%psc% "if (-not (Get-AuthenticodeSignature -FilePath '!_work!\clipup.exe').IsOSBinary) {Exit 3}" %nul%
if !errorlevel!==3 (
%eline%
echo Valid digital signature not found in clipup.exe file.
diff --git a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
index ec7d965..73c5dba 100644
--- a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
+++ b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
@@ -452,7 +452,7 @@ goto dk_done
:: Check file signature
if defined a_cor (
-%psc% "if ((Get-AuthenticodeSignature -FilePath '!_work!\clipup.exe').Status -ne 'Valid') {Exit 3}" %nul%
+%psc% "if (-not (Get-AuthenticodeSignature -FilePath '!_work!\clipup.exe').IsOSBinary) {Exit 3}" %nul%
if !errorlevel!==3 (
%eline%
echo Valid digital signature not found in clipup.exe file.