添加特定软件证书到windows不信任列表
$target="C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" $filePath=$PSScriptRoot+(New-Guid).Guid $cer = Get-AuthenticodeSignature $target Export-Certificate -Cert $cer.SignerCertificate -FilePath $filePath Import-Certificate -FilePath $filePath -CertStoreLocation Cert:\LocalMachine\Disallowed\ Import-Certificate -FilePath $filePath -CertStoreLocation Cert:\CurrentUser\Disallowed\ rm $filePath -Force

浙公网安备 33010602011771号