Compare commits

...

3 Commits

Author SHA1 Message Date
WindowsAddict
0afb09cbd1 Use IsOSBinary check 2024-09-05 05:11:08 +05:30
WindowsAddict
5d8a463475 Check signature of clipup.exe in Server Cor/Acor editions 2024-09-05 04:44:49 +05:30
WindowsAddict
7044f37b44 Add a line in main menu 2024-09-05 03:50:03 +05:30
2 changed files with 29 additions and 5 deletions

View File

@ -313,7 +313,7 @@ goto dk_done
cls cls
color 07 color 07
title Microsoft %blank%Activation %blank%Scripts %masver% title Microsoft %blank%Activation %blank%Scripts %masver%
if not defined terminal mode 76, 32 if not defined terminal mode 76, 33
echo: echo:
echo: echo:
@ -332,6 +332,8 @@ echo:
echo: [5] Check Activation Status echo: [5] Check Activation Status
echo: [6] Change Windows Edition echo: [6] Change Windows Edition
echo: [7] Change Office Edition echo: [7] Change Office Edition
echo: __________________________________________________
echo:
echo: [8] Troubleshoot echo: [8] Troubleshoot
echo: [9] Extras echo: [9] Extras
echo: [H] Help echo: [H] Help
@ -3691,8 +3693,19 @@ if not exist "!_work!\clipup.exe" (
echo clipup.exe doesn't exist in Server Cor/Acor [No GUI] versions. echo clipup.exe doesn't exist in Server Cor/Acor [No GUI] versions.
echo The file is required for KMS38 activation. echo The file is required for KMS38 activation.
echo Check the below page for instructions on how to activate it. echo Check the below page for instructions on how to activate it.
set fixes=%fixes% %mas%kms38 call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%kms38"
echo %mas%kms38 goto dk_done
)
)
:: Check file signature
if defined a_cor (
%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.
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
goto dk_done goto dk_done
) )
) )

View File

@ -444,8 +444,19 @@ if not exist "!_work!\clipup.exe" (
echo clipup.exe doesn't exist in Server Cor/Acor [No GUI] versions. echo clipup.exe doesn't exist in Server Cor/Acor [No GUI] versions.
echo The file is required for KMS38 activation. echo The file is required for KMS38 activation.
echo Check the below page for instructions on how to activate it. echo Check the below page for instructions on how to activate it.
set fixes=%fixes% %mas%kms38 call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%kms38"
echo %mas%kms38 goto dk_done
)
)
:: Check file signature
if defined a_cor (
%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.
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
goto dk_done goto dk_done
) )
) )