$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\DisallowedImport-Certificate -FilePath $filePath -CertStoreLocation Cert:\CurrentUser\Disallowedrm $filePath -Force