Results 1 to 2 of 2

Thread: Wmi

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    3

    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)

  2. #2
    New Member gecko_au2003's Avatar
    Join Date
    Sep 2004
    Posts
    4

    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
  •  



Click Here to Expand Forum to Full Width