Is there a way to pull the Validity period for a particular certificate template?

Nov 25, 2014 at 1:24 PM
I'm trying to audit the validity period on all of my certificate templates, but using the Get-ValidityPeriod doesn't allow me to specific a particular certificate template. I also tried pulling down the properties of the certificate Get-CertificateTemplate command, but that doesn't provide much details either. Is there a way to do this? Ideally I'd like to be able to pull down all the properties of a give template (validity period, renewal period, key length, etc).

Dec 4, 2014 at 6:56 PM
Edited Dec 4, 2014 at 7:26 PM
but that doesn't provide much details either
what do you mean? Get-CertificateTemplate contains all information about certificate template that is visible in the Certificate Templates MMC.

just to clarify: by default, Get-CertificateTemplate shows only basic information (it is formatted). In order to view all settings, you should pipe the result to a Format-List cmdlet:
Get-CertificateTemplate -Name WebServer | Format-List