|
Thread: Wmi
-
Aug 21st, 2006, 01:46 AM
#1
Thread Starter
New Member
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)
-
Sep 2nd, 2006, 04:56 AM
#2
New Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|