-
Wmi
Hello i want get a list of my pcuptime in our network via
objCIM = GetObject("winmgmts:{impersonationLevel=impersonate}//" & strComputer & "/root/cimv2")
this works fine i can read the pc uptime ....
so my problem is in my network are 230pc and some are offline so it tooks time to read ... is there a way to boost up (timeout)
-
Re: Wmi
you would have to make a function that uses wmi to ping each machine as you loop through them and check to see if they are online ( which you will know by if you get a reply from ping or if it errors out )
Once you know that they reply then you can run your code to check the uptime, if not then you just skip it and go to the next one.