Message from discussion
WMI error
Path: g2news1.google.com!postnews.google.com!f63g2000hsf.googlegroups.com!not-for-mail
From: Tom Lavedas <tglba...@cox.net>
Newsgroups: microsoft.public.scripting.vbscript
Subject: Re: WMI error
Date: Tue, 18 Mar 2008 06:31:34 -0700 (PDT)
Organization: http://groups.google.com
Lines: 28
Message-ID: <cefc4adb-91b3-47f7-803e-e28a96f01a6f@f63g2000hsf.googlegroups.com>
References: <#I5IioPiIHA.5724@TK2MSFTNGP05.phx.gbl>
NNTP-Posting-Host: 199.46.198.234
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1205847094 24923 127.0.0.1 (18 Mar 2008 13:31:34 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 18 Mar 2008 13:31:34 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: f63g2000hsf.googlegroups.com; posting-host=199.46.198.234;
posting-account=xfpnYwkAAABbjpQYtgPoJVP0J-XxsFQb
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12)
Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 bos-gate5.raytheon.com:8080 (Squid/2.4.STABLE7)
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/