FancyPrairie
Programmer
I've put together some code that extracts information from each computer in our domain. For example, the following code will get printer information.
However, sometimes my code just hangs after issuing the ExecQuery. Is there a timeout parameter for this call?
Code:
Set objWMIService = GetObject("winmgmts:\\" & strComputerName & "\root\cimv2")
Set colOS = objWMIService.ExecQuery("SELECT * FROM Win32_Printer")
However, sometimes my code just hangs after issuing the ExecQuery. Is there a timeout parameter for this call?