WMI Remote connection objsWbemLocator.ConnectServer
        Posted  
        
            by Sam
        on Server Fault
        
        See other posts from Server Fault
        
            or by Sam
        
        
        
        Published on 2009-07-21T13:21:19Z
        Indexed on 
            2010/03/26
            3:03 UTC
        
        
        Read the original article
        Hit count: 541
        
I have an issue when connecting to remote machines using the following:
Set objWMIService = objSWbemLocator.ConnectServer _ (sIP, "root\CIMV2", strUser, strPassword, "MS_409", "ntlmdomain:" + sDomain, 128)
the problem is that some machines are not timing out and the process hangs.
Is there a way to cancel the connect and continue with the next ip? I'm using vbscript.
Thanks, Sam
© Server Fault or respective owner