mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2024-11-22 06:42:40 +01:00
Use IsOSBinary check
This commit is contained in:
parent
5d8a463475
commit
0afb09cbd1
2 changed files with 2 additions and 2 deletions
|
@ -3701,7 +3701,7 @@ goto dk_done
|
||||||
:: Check file signature
|
:: Check file signature
|
||||||
|
|
||||||
if defined a_cor (
|
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 (
|
if !errorlevel!==3 (
|
||||||
%eline%
|
%eline%
|
||||||
echo Valid digital signature not found in clipup.exe file.
|
echo Valid digital signature not found in clipup.exe file.
|
||||||
|
|
|
@ -452,7 +452,7 @@ goto dk_done
|
||||||
:: Check file signature
|
:: Check file signature
|
||||||
|
|
||||||
if defined a_cor (
|
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 (
|
if !errorlevel!==3 (
|
||||||
%eline%
|
%eline%
|
||||||
echo Valid digital signature not found in clipup.exe file.
|
echo Valid digital signature not found in clipup.exe file.
|
||||||
|
|
Loading…
Reference in a new issue