Doodad Boy
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
I tried to Google and re-gister WMI file, still failed. How to fix wmi error
what operating system is the machine running?
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
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
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
ASKER
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
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 \Repositor y folder.
7. Shutdown and restart your computer. The Windows Management Instrumentation service will start and the files will be re-created.
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
7. Shutdown and restart your computer. The Windows Management Instrumentation service will start and the files will be re-created.
ASKER
Yes Done.
But it does not help to fix the issue.
But it does not help to fix the issue.
ASKER
Please advice if there is any other way to fix the issue.
To re-install WMI, use the command:
rundll32.exe setupapi,InstallHinfSectio n WBEM 132 %windir%\inf\wbemoc.inf
rundll32.exe setupapi,InstallHinfSectio
ASKER
Hi,
When i typed rundll32.exe setupapi,InstallHinfSectio n 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
When i typed rundll32.exe setupapi,InstallHinfSectio
Have you insert the installation disk in DVD/CD?
ASKER
oh need insert the cd and run the command??
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.