You could use psexec from
www.sysinternals.com Cheers
Ken
[quoted text, click to view] <Jul.Genis@gmail.com> wrote in message
news:1142266354.988182.195600@p10g2000cwp.googlegroups.com...
: Hello,
:
: I am trying to come up with a solution which will help me gather ssl
: certificacte expiration date remotelly. So far the only solution that i
: caould come up with is running the following command on remote servers:
: certmgr.exe /s -r localmachine my >> \\server\share\exp_date.txt
:
: I tried to run it via wmi but cant seem to get it working. If any one
: has a better idea please post it.
:
: here is the wmi code
:
: strComputer = "."
: Set objWMIService = GetObject _
: ("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process")
: errReturn = objWMIService.Create _
: ("cmd.exe /c certmgr.exe /s -r localmachine my >>
: \\server\share\exp_date.txt", Null, Null, intProcessID)
: