Learn about Windows PowerShell
Summary: Learn how to quickly check user certificates by using Windows PowerShell.
How can I use Windows PowerShell to check the validity of user certificates without engaging in a manual process?
Use the certificate provider to obtain a list of certificate objects, and pipe the results to the Test-Certificate cmdlet:
gci Cert:\CurrentUser\my -Recurse | Test-Certificate -AllowUntrustedRoot