I try to connect to a remote Computer to get the CurrentUser. Ping is ok. No error occurs, but the script halts while executing this statement:
Set oSys = GetObject("winmgmts:" & _
"{impersonationLevel=impersonate}" & _
"!//" & machine & _
"/root/cimv2:Win32_ComputerSystem=""" & _
machine & """"
It seems that the WMI Service at the remote computer doesn't respond (I can't even stop this service).
Is it possible to set a reasonable timeout!?
Set oSys = GetObject("winmgmts:" & _
"{impersonationLevel=impersonate}" & _
"!//" & machine & _
"/root/cimv2:Win32_ComputerSystem=""" & _
machine & """"
It seems that the WMI Service at the remote computer doesn't respond (I can't even stop this service).
Is it possible to set a reasonable timeout!?