• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2141
  • Last Modified:

Script for removing personal certificates

Is there a way to script removal of personal certificates?  We have  a few computers in a lab with local provider access to the Internet.  The users log onto some secure sites with Smart cards, so their certificates are captured.  After several people and a few days, this can add up, and it becomes very difficult to find your certificate amongst so many.  I know that you can use the Internet options panel to remove certificates, but is it possible to automate this, like a logoff script?  I tried certmgr, but it just opened the GUI, and certmgr.exe did not work at all.  I removed the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\MY\Certificates, but that had to be the wrong location, because the certs are still there. I would appreciate any help you could give me on this matter.  Thanks.
2 Solutions
Give this a shot I assume this is a server?


Let me know if i'm barking up the wrong tree here.
Jackie ManCommented:
I am not sure whether my method will work or not as the script can work on windows 7.

Do you have time to try?

IF yes, in computers in your lab running Windows Vista, without removing the stored personal certificate, run the following command in command prompt and post back the content inside results.txt file.

    cmdkey /list ->results.txt

Please disguise the identification information inside the file before you post back the results.
rocketgirl9Author Commented:
Thanks alot, both of you.  I am sorry I did not get back to you right away.  The machine was not a server, but I found an option somewhere in the formerly disabled Smart Card reader configuration manager app that allows the cached card credentials to be dumped upon the card removal.  Thanks so much for your hlep.

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now