$target="C:Program Files (x86)MicrosoftEdgeApplicationmsedge.exe" $filePath=$PSScriptRoot+(New-Guid).Guid $cer = Get-AuthenticodeSignature $target Export-Certificate -Cert $cer.SignerCertificate -FilePath $filePath Import-Certificate -FilePath $filePath -CertStoreLocation Cert:LocalMachineDisallowed Import-Certificate -FilePath $filePath -CertStoreLocation Cert:CurrentUserDisallowed rm $filePath -Force