$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