Link to home
Create AccountLog in
Avatar of Doodad Boy
Doodad BoyFlag for Malaysia

asked on

system info could not display in cmd

When i typed systeminfo in command prompt, i hit by an error "ERROR:Generic failure".

I tried to Google and re-gister WMI file, still failed. How to fix wmi error
Avatar of Aegil
Aegil
Flag of United Kingdom of Great Britain and Northern Ireland image

what operating system is the machine running?
Avatar of raysonlee
raysonlee

Have you run this?


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

Open in new window

Avatar of Doodad Boy

ASKER

hi,

when i ran mofcomp cimwin32.mof, i got error as per below:
storing data in the repository...
An error occured while opening the namespace for object 1 defined on lines 8 - 11:
Error number: 0x80041001, Facility:WMI
Description: Generic failure
Compiler returned error  0x80041001
Please advice how to fix it
hi,
For your info, this is windows 2008 server os
when i ran mofcomp cimwin32.mof, i got error as per below:
storing data in the repository...
An error occured while opening the namespace for object 1 defined on lines 8 - 11:
Error number: 0x80041001, Facility:WMI
Description: Generic failure
Compiler returned error  0x80041001
Please advice how to fix it
Windows Management Instrumentation (WMI) might be corrupted.

Try the below steps.

1.  Right click mycomputer and go to manage
2.  Double-click Services and Applications in the left-hand pane.
3.  Press Services to expand it.
4.  Scroll to Windows Management Instrumentation in the right-hand pane and right-click it.
5.  Press Stop.
6.  Use Windows Explorer to delete all the files in the %SystemRoot%\System32\Wbem\Repository folder.
7. Shutdown and restart your computer. The Windows Management Instrumentation service will start and the files will be re-created.
Yes Done.

But it does not help to fix the issue.
Please advice if there is any other way to fix the issue.
To re-install WMI, use the command:
rundll32.exe setupapi,InstallHinfSection WBEM 132 %windir%\inf\wbemoc.inf
Hi,

When i typed rundll32.exe setupapi,InstallHinfSection WBEM 132 %windir%\inf\wbemoc.inf  in cmd, i got one message "installation failed:. What further action need to be taken to fix this issue. Please advice
Have you insert the installation disk in DVD/CD?
oh need insert the cd and run the command??
ASKER CERTIFIED SOLUTION
Avatar of raysonlee
raysonlee

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer