I am getting error in below listed script. Can anyone help me in
identifying the problem

strComputer = "192.168.1.2"
strUserName = "admin"
strPassword = "test"

Set objLocator = CreateObject("WbemScripting.SWbemLocator")

Set objService = objLocator.ConnectServer(strComputer,
"root\cimv2",strUserName, strPassword)
Set wbemServices = objService.Get("Win32_Service")
Set StdOut = WScript.StdOut
Set wbemObjectSet = wbemServices.InstancesOf("Win32_Service")

For Each wbemObject In wbemObjectSet
WScript.Echo "Display Name: " & wbemObject.DisplayName & vbCrLf &
_
" State: " & wbemObject.State & vbCrLf &
_
" Start Mode: " & wbemObject.StartMode
Next

Thanks in advance, DK

Re: Checking services on remote machine by DK

DK
Thu Jun 23 15:39:03 CDT 2005

Never mind, I found the problem

Set wbemServices =3D objLocator.ConnectServer(strCo=ADmputer, _
"root\cimv2",strUserName, strPassword)
Set wbemObjectSet =3D wbemServices.InstancesOf("Win3=AD2_Service")=20

DK


Re: Checking services on remote machine by DK

DK
Thu Jun 23 15:42:03 CDT 2005

Never mind, I found the problem

Set wbemServices =3D objLocator.ConnectServer(strCo=ADmputer, _
"root\cimv2",strUserName, strPassword)
Set wbemObjectSet =3D wbemServices.InstancesOf("Win3=AD2_Service")=20

DK