Here is the command to import a certificate to the local machine trusted root certificate store
Import-Certificate -FilePath \\172.16.25.10\files\spiderip.crt -CertStoreLocation 'Cert:\LocalMachine\Root' -Verbose -WhatIf
The above command import spiderip.crt to Local machine / Trusted Root authorities store
If you want to import the certificate to current user store
Import-Certificate -FilePath \\172.16.25.10\files\spiderip.crt -CertStoreLocation 'Cert:\CurrentUser\Root' -WhatIf
Comments