October 30th, 2014

PowerTip: Use PowerShell to Import Certificate

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to import a certificate.

Hey, Scripting Guy! Question How can I use Windows PowerShell to automate the installation of a certificate?

Hey, Scripting Guy! Answer Use the Import-Certificate cmdlet, and specify the certificate store location and the path to
           the certificate file, for example:

Import-Certificate –filepath c:\fso\mycert.cert –certStorelocation cert:\currentuser\my

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.