PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 4.67 average.

How to re-install WMI for Windows XP

 
 
Frank R?der
Guest
Posts: n/a
 
      6th Oct 2004
I have a problem with my WMI it's corrupted after installing SP2 for
Windows XP.

I have tried everything (I believe): Rebuilding repository has no
effect, tried remove "hide" in sysoc.inf for WBEM, but I could not
remove the checkmark in the Windows program components to remove the
application....

I have not found any article about re-installing WMI on a Windows XP.

Does any have any idea ?

Regards
Frank Röder
Systems Engineer.
 
Reply With Quote
 
 
 
 
Luke Edson
Guest
Posts: n/a
 
      6th Oct 2004
I saw this in the Group Policy Newsgroup:

-----Begining of copied message-------

. Reply (E-mail) Forward (E-mail)

Subject: Re: WMI generic failure
From: "Todd J Heron" <(E-Mail Removed)>
Sent: 10/5/2004 11:48:46 AM




Copy the lines below into a CMD script and run it on your
machine. Let me
know if it works.

--
Todd J Heron, MCSE
Windows 2003/2000/NT

COPY ALL LINES BELOW:

net stop winmgmt

pause

c:

cd c:\windows\system32\wbem

rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll

regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof

mofcomp cimwin32.mfl

mofcomp rsop.mof

mofcomp rsop.mfl

for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s

for /f %%s in ('dir /b *.mof') do mofcomp %%s

for /f %%s in ('dir /b *.mfl') do mofcomp %%s

mofcomp exwmi.mof

mofcomp -n:root\cimv2\applications\exchange wbemcons.mof

mofcomp -n:root\cimv2\applications\exchange smtpcons.mof

mofcomp exmgmt.mof


"t" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> C:\WINDOWS\system32\wbem
>
>
> "Todd J Heron" <(E-Mail Removed)> wrote

in message
> news:#(E-Mail Removed)...
> What is the path of the path of the wbem folder?
>
> --
> Todd J Heron, MCSE
> Windows 2003/2000/NT
> "t" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> Hi All,
> any 1 could help on this, any time try to create new

WMI filter it gives
> me an error "Generic Failure" 0X80041001 WBEM_E_FAILED

call failed, tried
> to
> stop WMI services and restarted it but it did not fix

the problem. rebuild
> the WMI repository also did not fix the problem.
> I am running out of Ideas, re-install windows 2003

server in not an
> option.
> Please help.
>
> Tim
>
>


----End of copied message------

>-----Original Message-----
>I have a problem with my WMI it's corrupted after

installing SP2 for
>Windows XP.
>
>I have tried everything (I believe): Rebuilding

repository has no
>effect, tried remove "hide" in sysoc.inf for WBEM, but I

could not
>remove the checkmark in the Windows program components

to remove the
>application....
>
>I have not found any article about re-installing WMI on

a Windows XP.
>
>Does any have any idea ?
>
>Regards
>Frank Röder
>Systems Engineer.
>.
>

 
Reply With Quote
 
LeeSchoff
Guest
Posts: n/a
 
      9th Oct 2004
I ran the script. A number of errors. Generally invalid namespace or
missing .mof files. They follow:

C:\WINDOWS\system32\wbem>mofcomp Outlook_01c3d2f4d6781d55.mof
Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.2180
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
Parsing MOF file: Outlook_01c3d2f4d6781d55.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while creating object 1 defined on lines 31 - 163:
0X80041002 Class, instance, or property 'Win32_PerfRawData' was not
found.
Compiler returned error 0x80041001

C:\WINDOWS\system32\wbem>mofcomp exwmi.mof
Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.2180
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
File 'exwmi.mof' not found!

C:\WINDOWS\system32\wbem>mofcomp -n:root\cimv2\applications\exchange
wbemcons.mof
Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.2180
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
Parsing MOF file: wbemcons.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while opening the namespace for object 1 defined on
lines 3 - 10:
Error Number: 0x8004100e, Facility: WMI
Description: Invalid namespace

Compiler returned error 0x8004100e
C:\WINDOWS\system32\wbem>mofcomp -n:root\cimv2\applications\exchange
smtpcons.mof
Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.2180
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
Parsing MOF file: smtpcons.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while opening the namespace for object 1 defined on
lines 4 - 16:
Error Number: 0x8004100e, Facility: WMI
Description: Invalid namespace

Compiler returned error 0x8004100e
C:\WINDOWS\system32\wbem>mofcomp exmgmt.mof
Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.2180
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
File 'exmgmt.mof' not found!


 
Reply With Quote
 
New Member
Join Date: Jan 2006
Posts: 1
 
      9th Jan 2006
Win XP pro service pack 2
After installing speed up my pc and win tasks pro ....system information no longer worked.
uninstalled both programs
system info continued to not work ...brought up help and support.
Tried MSINFO32.exe from Start Run...still no help.
tried to restore restore point from an earlier known working point.
did not help.
Verified that DCOM , event logging, error reporting, Remote procedure call (rpc),and WMI were started and set to automatic.
I noticed that C:\WINDOWS\PCHealth\HelpCtr\OfflineCache\index.dat was missing.
Possibly from a windows cleanup program
copied from another XP computer.
I eventually got system info to start But could not Collect Information.
copied the above script and ran from command prompt as bat file.
received the errors also of name space and MOF
so I think the registering of the DLL's is what solved the problem.
although I did get errors that the WMI files were corrupt and missing it turned out to not be the case.
I think I may check for registry errors,clear event log, check that all installed programs are operating, make sure windows and other programs are fully updated, create restore point and see how things go.
This may be an old post that I am replying to but I think others may still find some value in it like I did.
Good luck and Happy Computing
Supertech1024
 
Reply With Quote
 
New Member
Join Date: Jan 2007
Posts: 1
 
      17th Jan 2007
Hi,

I had a problem where WMI was not registered as a service at all. Tried to repair XP, run sfc, but nothing helped.
This batch file did the trick and WMI is now running.

Thanks a lot,
T.

Last edited by tommyq; 17th Jan 2007 at 01:18 PM.. Reason: Typo
 
Reply With Quote
 
New Member
Join Date: Mar 2006
Posts: 4
 
      12th Mar 2007
This one worked for me

Click Start > Run and type in

rundll32.exe setupapi,InstallHinfSection WBEM 132 %windir%\inf\wbemoc.inf

You will need an XP CD with the same version you have installed.
 
Reply With Quote
 
New Member
Join Date: Oct 2008
Posts: 1
 
      20th Oct 2008
the script From: "Todd J Heron" <(E-Mail Removed)> posted by Luke Edson worked perfectly for my WMI, thank you.
ciao

Aldo
 
Reply With Quote
 
New Member
Join Date: Nov 2008
Posts: 1
 
      5th Nov 2008
Quote:
Originally Posted by Luke Edson
I saw this in the Group Policy Newsgroup:

-----Begining of copied message-------

. Reply (E-mail) Forward (E-mail)

Subject: Re: WMI generic failure
From: "Todd J Heron" <(E-Mail Removed)>
Sent: 10/5/2004 11:48:46 AM




Copy the lines below into a CMD script and run it on your
machine. Let me
know if it works.

--
Todd J Heron, MCSE
Windows 2003/2000/NT

COPY ALL LINES BELOW:

net stop winmgmt

pause

c:

cd c:\windows\system32\wbem

rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll

regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof

mofcomp cimwin32.mfl

mofcomp rsop.mof

mofcomp rsop.mfl

for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s

for /f %%s in ('dir /b *.mof') do mofcomp %%s

for /f %%s in ('dir /b *.mfl') do mofcomp %%s

mofcomp exwmi.mof

mofcomp -n:root\cimv2\applications\exchange wbemcons.mof

mofcomp -n:root\cimv2\applications\exchange smtpcons.mof

mofcomp exmgmt.mof


"t" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> C:\WINDOWS\system32\wbem
>
>
> "Todd J Heron" <(E-Mail Removed)> wrote

in message
> news:#(E-Mail Removed)...
> What is the path of the path of the wbem folder?
>
> --
> Todd J Heron, MCSE
> Windows 2003/2000/NT
> "t" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> Hi All,
> any 1 could help on this, any time try to create new

WMI filter it gives
> me an error "Generic Failure" 0X80041001 WBEM_E_FAILED

call failed, tried
> to
> stop WMI services and restarted it but it did not fix

the problem. rebuild
> the WMI repository also did not fix the problem.
> I am running out of Ideas, re-install windows 2003

server in not an
> option.
> Please help.
>
> Tim
>
>


----End of copied message------

>-----Original Message-----
>I have a problem with my WMI it's corrupted after

installing SP2 for
>Windows XP.
>
>I have tried everything (I believe): Rebuilding

repository has no
>effect, tried remove "hide" in sysoc.inf for WBEM, but I

could not
>remove the checkmark in the Windows program components

to remove the
>application....
>
>I have not found any article about re-installing WMI on

a Windows XP.
>
>Does any have any idea ?
>
>Regards
>Frank Röder
>Systems Engineer.
>.
>
Thanks Luke Edson,
Ref: Your reply: 06-10-2004, 08:40 PM .
I was having WMI problem, so I could not install SMS 2003 - client Software. While manually compiling the.mof files, I got the following error. After I ran the csript in .bat file the client software could install. Thanks many more...
The error was:
cimwin32.mof - -- Error Number: 0x80041001, Facility: WMI
Description: Generic failure
Compiler returned error 0x80041001
 
Reply With Quote
 
New Member
Join Date: Feb 2009
Posts: 2
 
      6th Feb 2009
hi
i had same peob with my OS ( windows xp x64 )
and i fixed it now

just leave every bullshit do these steps

1) insurt Windows XP cd in CD/DVD rom
2) open run
3) type "sfc /scannow" hit enter

it ll take some time after it is completed it ll be fixed
now u can use dialup/network connection Properties Advanced tab

i dont know about other OS infact i hv no peoblem with my winxp x64
 
Reply With Quote
 
New Member
Join Date: Jul 2009
Posts: 1
 
      9th Jul 2009
Yes.....!!

The script From: "Todd J Heron" <(E-Mail Removed)> posted by Luke Edson worked perfectly for my WMI reinstall!!!

Thanks so much!!You folks are awesome!!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XP Pro CANNOT INSTALL- Runs Drivers but STOP at Windows install bigboyzz39 Windows XP Setup 1 6th Dec 2007 02:22 AM
Windows Defender will not install download/install updates =?Utf-8?B?aGFyaW43NQ==?= Spyware Discussion 6 24th Nov 2006 08:51 PM
Error: To install windows please try booting from the install medi =?Utf-8?B?RUo=?= Windows Vista Installation 7 13th Sep 2006 10:41 PM
can I install Japanese characters/IME without Windows install disc =?Utf-8?B?aW1yZXI=?= Windows XP General 6 15th Nov 2005 08:10 AM
can't install Windows 2000 Service Pack 4 Express Install for End Users Sonia Microsoft Windows 2000 Windows Updates 3 28th Aug 2003 10:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:59 AM.