I would like to list all issued certificates except autoenrollment ones.
My script shows all issued. How to change this code that autoenrollment ones are excluded? I have used PSPKI module (http://pspki.codeplex.com)
***********************************
$caname = $computername.ToLower()
$domaindns = $ENV:USERDNSDOMAIN.ToLower()
$todaysdate = Get-Date
$enddate = $todaysdate.AddMonths(2)
$issuedcerts = Get-CertificationAuthority “$caname.$domaindns” | Get-IssuedRequest -property * -Filter "NotAfter -ge $todaysdate", "NotAfter -le $enddate" | sort-object NotAfter, NotBefore