I use powershell app deployment tool kit and I have a script to install a few MSI's. For one of the MSI's, I have a certificate (cert.cer
) that I need to install on each machine's trusted publisher.
After doing some digging, I came up with this:
certutil.exe -addstore TrustedPublisher cert.cer
certutil.exe -addstore root cert.cer
This does not work, no errors, I am just still being prompted to have to accept an install from a non trusted publisher.
Open PowerShell as administrator and run:
Import-Certificate -FilePath cert.cer -CertStoreLocation Cert:\LocalMachine\TrustedPublisher
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With