find editbin for vs 2017 community

updated acceptable authenticode for editbin.
This commit is contained in:
kmscode
2017-09-09 14:26:38 -04:00
parent 66f2c55343
commit 6aaf2f031b
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ param (
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
# Find editbin.exe
$path_editBin = @((Resolve-Path -Path "C:\Program Files*\Microsoft Visual Studio*\VC\bin\editbin.exe").Path)[0]
$path_editBin = @((gci -Path "C:\Program*\Microsoft Visual Studio\" -Filter editbin.exe -Recurse).FullName)[0]
# Verify editbin certificate
& "$PSScriptRoot\validate_microsoft_tool.ps1" -Path $path_editBin

View File

@@ -3,7 +3,7 @@ param (
$Path
)
$valid_microsoft_cert_thumbprints = @("3BDA323E552DB1FDE5F4FBEE75D6D5B2B187EEDC", "108E2BA23632620C427C570B6D9DB51AC31387FE")
$valid_microsoft_cert_thumbprints = @("3BDA323E552DB1FDE5F4FBEE75D6D5B2B187EEDC", "108E2BA23632620C427C570B6D9DB51AC31387FE", "98ED99A67886D020C564923B7DF25E9AC019DF26")
$exe_signature = Get-AuthenticodeSignature -FilePath $Path
$baseErrorMsg = "Could not validate the certificate of $Path. "