Re: WMI GetObject Failing to return anything

From: Marty List (bill.gates_at_sun.com)
Date: 09/03/04


Date: Thu, 2 Sep 2004 18:59:45 -0600


"Charles Palmer" <charles@ggi.cc> wrote in message
news:ObzdSDIjEHA.3928@TK2MSFTNGP11.phx.gbl...
> I am working on a script that will run against all machines in a domain
and
> return some data about each machine through a WMI call. On about 10% of my
> machines, I am not getting any return. I have the script ping each machine
> first to make sure it returns as alive before I attempt a WMI call to the
> machine. When I make the WMI call to the machine to get OS version and
some
> other data, if I don't have On Error Resume Next, the script fails with
> GetObject failed. If I run the script with On Error Resume Next, after
about
> 5 minutes, the WMI call fails and the script moves on to the next computer
> in the list. The problem is, it doesn't run any of my logging or debugging
> code after this point until on the next machine. I can't even return the
> error message that is generated by GetObject. From trying to manually
> connect to the machine through other methods, I know that the problem for
> why the GetObject is failing is with the machine and I am trying to figure
> out what the problem is, but this question is because it won't even log
that
> it has a failure when trying to connect to WMI. I am running this script
> against about 500 machines and only pulling WMI on about 250 of them. Of
> those 250, I have about 25 that are failing. Since it is taking between
3-5
> minutes for each machine to fail, it is significantly increasing my script
> runtime.
>
> Any help or guidance that helps me figure out the problem or at least log
> the problem machines would be greatly appreciated.
>
> Thanks,
> Charles Palmer
>

Without seeing your script, I'm going to guess the problem is on line 62.



Relevant Pages

  • RE: Does WMI have to be installed on Remote Computer?
    ... IMHO this looks like a well constructed and very vell commented script. ... WMI comes as standard on w2k w2k3 and xp, ... does WMI need to be installed on the remote computer in order for a ... ''' First try to ping the server. ...
    (microsoft.public.scripting.vbscript)
  • WMI GetObject Failing to return anything
    ... return some data about each machine through a WMI call. ... I have the script ping each machine ... the WMI call fails and the script moves on to the next computer ... error message that is generated by GetObject. ...
    (microsoft.public.windowsxp.wmi)
  • Re: Create simple file share on the fly
    ... WMI share routine faithfully works. ... You can place the command line below as the final line in your WMI ... You might experiment with actual workstations to see if the script is ... the shares that I make from the Windows GUI, ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Starting Excel and doing "stuff"...
    ... I have a WMI .vbs that monitors a folder for new files. ... This code first creates an event filter that polls the repository every 5 ... can use another script or utilities like wbemtest.exe or CIM Studio). ... Active script event consumer has limitations, you can't make Excel visible, ...
    (microsoft.public.excel.programming)
  • Re: Patch Management & Identifying Hosts
    ... Patch Management of the Security Operations ... WMI is also an option. ... "A WSH script using VBScript is explained. ... the result from the online computers. ...
    (microsoft.public.win2000.security)