Link to home
Start Free TrialLog in
Avatar of Bobby
BobbyFlag for United States of America

asked on

batch file to delete certificates

On one of our W2k8 terminal servers, a certain certificate keeps getting installed, and I have to go into internet options to delete it. Somehow it hoses all http requests to the server itself, and bogs down all connections. That’s how I know when to go in and delete. I think it keeps getting installed via somebody opening an email from the federal government, whom we do business with.

Is there a way to programmatically delete that cert if it exists every hour?
Avatar of twol
twol
Flag of United States of America image

Sure, create the batch file, then go into control panel, scheduled tasks, and set the process up to run every hour.
well your issue sounds a bit bizarre but if this fixes it, and you cant find the cause then i guess you could use

cer
Avatar of Bobby

ASKER

twol, I am familiar with creating and running and scheduling batch files, the question is more where do the certs live and do they have permissions which will not allow deletion via batch?

twohawks… I was hoping to do this via simple batch file, without having to download more tools.
Avatar of Bobby

ASKER

cer ?
Certutil -delstore
Avatar of Bobby

ASKER

Would Certutil -delstore delete all of them? I only want to delete a specific cert.
ASKER CERTIFIED SOLUTION
Avatar of Govvy
Govvy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the assist points, QMBB.  
Avatar of Bobby

ASKER

Thank you.