Message from discussion
WMI error
From: "TDM" <rpu...@gmail.com>
References: <#I5IioPiIHA.5724@TK2MSFTNGP05.phx.gbl> <cefc4adb-91b3-47f7-803e-e28a96f01a6f@f63g2000hsf.googlegroups.com> <eNwvA9PiIHA.3940@TK2MSFTNGP05.phx.gbl>
Subject: Re: WMI error
Date: Tue, 18 Mar 2008 07:20:11 -0700
Lines: 58
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Message-ID: <OZOytMQiIHA.4740@TK2MSFTNGP05.phx.gbl>
Newsgroups: microsoft.public.scripting.vbscript,microsoft.public.wmi.programmer
NNTP-Posting-Host: scsiapat1.net.americas.agilent.com 192.25.142.225
Path: g2news1.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!195.114.231.69.MISMATCH!feeder.news-service.com!newsfeed00.sul.t-online.de!t-online.de!TK2MSFTFEEDS02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
"Tom K" <thomas.DOTk...@ThighmarkDOT.com> wrote in message
news:eNwvA9PiIHA.3940@TK2MSFTNGP05.phx.gbl...
>
> "Tom Lavedas" <tglba...@cox.net> wrote in message
> news:cefc4adb-91b3-47f7-803e-e28a96f01a6f@f63g2000hsf.googlegroups.com...
>> On Mar 18, 9:15 am, "Tom K" <thomas.DOTk...@ThighmarkDOT.com> wrote:
>>> This line in our logon script...
>>>
>>> Set oWMIService =
>>> GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
>>>
>>> ...returns an error code 80041002 on some systems.
>>>
>>> Anyone have ideas what might be causing it?
>>>
>>> Thanks,
>>>
>>> Tom
>>
>> Are these WinNT systems? That error is WBEM_E_NOT_FOUND according to
>> a search at MSDN. IIRC, NT does not have WMI installed, though it can
>> run it.
>>
>> If they are not NT, then the problem must presumably be related to a
>> fault in the WMI installation.
>>
>> In any case, it would appear to be a configuration problem, not a
>> scripting fault. You may get more help at the WMI or a sys admin
>> group.
>>
>> Tom Lavedas
>> ===========
>> http://members.cox.net/tglbatch/wsh/
>
> Thanks for the quick reply, Tom. These are all fully patched Windows XP
> SP2 systems that are displaying the problem. I forgot to include the WMI
> group on my OP so I've added them now. Hopefully those wizards will have
> something for me.
>
> The $65,000 question is what is the quickest and easiest way to rebuild
> the WMI installation?
>
> Tom
>
When WMI is busted, and the answer is not obvious,
this is the first place I turn. It has helped me many times.
This tool is also the biggest VB Script I have ever seen.
Watch for line wrap.
http://www.microsoft.com/downloads/details.aspx?familyid=d7ba3cd6-18d1-4d05-b11e-4c64192ae97d&displaylang=en
TDM