Re: Failed to initialize all required WMI classes
- From: "Alain Lissoir [MSFT]" <alain.lissoir@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 24 Aug 2005 10:30:55 -0700
Have you checked
http://www.microsoft.com/technet/scriptcenter/resources/wmifaq.mspx ?
"geos" <geos@xxxxxxxxxxxxxxxxxxx> wrote in message
news:deddhq$t0t$1@xxxxxxxxxxxxxxxxxxxxxxx
> Hi everyone,
>
> I have the following messages in WMI Control Properties:
>
> Failed to initialize all required WMI classes
> Win32_Processor: Interface: Class not registered
> Win32_WMISetting: Successful
> Security Information: Successful
> Win32_OperatingSystem: Interface: Class not registered
>
> I tried to google for some hints to resolve this problem, but I have only
> found some unregistration/re-registration procedure which didn't worked
> out.
>
> I am not a professional script writer and I am not very familiar with
> setting up the environment in which they run. Could you please give me
> some hints how to resolve this problem?
>
> The system is Windows 2003 SP1. I attach this tiny script I wanted to
> execute and which fails with the error message:
>
> ActiveX component can't create object
> 800A01AD
> Microsoft VBScript runtime error
>
> This script is supposed to close all instances of Notepad.
>
> strComputer = "."
> Set objWMIService = GetObject("winmgmts:" &
> "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
> Set colProcessList = objWMIService.ExecQuery("Select * from Win32_Process
> Where Name = 'notepad.exe'")
> For Each objProcess in colProcessList
> objProcess.Terminate()
> Next
>
> I would greatly appreciate any help or suggestion how to make this script
> alive.
>
> Thank you in advance,
> geos
.
- References:
- Prev by Date: Re: WMI fail
- Next by Date: Re: Programmatically configure TCPIP settings "Alternate Configuration
- Previous by thread: Failed to initialize all required WMI classes
- Next by thread: WMI fail
- Index(es):
Relevant Pages
|
Loading