Summary: Use Windows PowerShell to find certificates that are about to expire.
How can I use Windows PowerShell to find certificates that are going to expire within 30 days?
Use the certificate provider and the dynamic parameter –ExpiringInDays:
Get-ChildItem cert:\currentUser –Recurse –ExpiringInDays 30
thank you scripting guy
http://blogs.technet.com/b/microsoft_blog/archive/2014/03/25/microsoft-makes-source-code-for-ms-dos-and-word-for-windows-available-to-public.aspx
And in months?
Is there are way to do check certificates for multiple users across a domain?
One thing to remember is that tarchived certificates will not show up unless you use the -Force parameter on get-ChildItem