We help IT Professionals succeed at work.

VBScript - check for presence of computer certificate

straynor
straynor asked
on
8,267 Views
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.
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2014

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

do you get the certificate information you are after?

Rob.

Author

Commented:
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?

Thanks.
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
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.

OR

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.