From: BNSGuy on
Has anyone done anything with reading smartcards? Would like to be
able to use smartcard default certificates for identity verification
on a couple of processes. I'm not so much concerned about restricting
the script (it's an hta) to a specific user per-se, rather I need to
be able to log WHICH user ran a routine. I'd use domain credentials,
but there are situations where the script will be run from non-domain
machines, or from users that are logged on locally.

any pointers or sample code would be greatly appreciated. The code
also needs to be supported from Win2K through Win 7, on both 64 and 32
bit.

thanks!