Thursday, November 12, 2015

Importing Certificates using PowerShell

If you would like to be able to import certificates into the Certificate store using PowerShell, there are now a built-in set of PowerShell cmdlets that allow you to do this!

Starting with Windows 8.1 and Windows Server 2012 R2, you can use either of the following PowerShell cmdlets:

  • Import-Certificate
  • Import-PfxCertificate

You can read more about these PowerShell Cmdlets here:

Unfortunately, if you are using an older version of Windows (such as Windows Server 2008 R2 or even Windows Server 2012), you will need to implement your own custom PowerShell script to accomplish this similar to what is implemented here:

No comments:

Post a Comment