We help IT Professionals succeed at work.

VBScript - check for presence of computer certificate

straynor asked
Last Modified: 2013-11-10
Hi all,

I am about to deploy a VPN client to our workstations that require remote access to our network.

I would like to have a little vbscript\hta\program that the helpdesk guys can run on a PC that will check for the presence of a computer certificate from our enterprise CA in the local computer store, and a registry value.   Basically to save them having to click into the mmc and regedit, they can run the program and get a couple of green ticks\red x's.

I know the registry check is very easy, but I do not know if it is possible to check the local machine's Computer store for a certificate issued from our CA.

I have looked at the certutil.exe tool from the resource kit but while it is cearly comprehensive, i'm not sure if it will do what i want.

Any advice\experience with this?

Many thanks.
Watch Question

Most Valuable Expert 2012
Top Expert 2014

Hi, if you run this on a client:
certutil -store -v my

do you get the certificate information you are after?



Hi Rob,

Yes it does show the details on the relevant certificate, thanks.

Now to programmatically check it.

If i were to run that command from a shell, pipe the output to a txt file and then search the text file for the computer's hostname, i could get a yes/no.  Any better ideas?

Most Valuable Expert 2012
Top Expert 2014
This one is on us!
(Get your first solution completely free - no credit card required)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.