Link to home
Start Free TrialLog in
Avatar of Zack
ZackFlag for Australia

asked on

SQL Server Configuration Manager WMI Error

Hi EE,

I am getting the error which is described in this article:

http://tritoneco.com/2014/05/15/fix-sql-configuration-manager-cannot-connect-to-wmi-provider/

However when I apply the 'fix' described I get the following error message:

C:\Program Files\Microsoft SQL Server\90\Shared>mofcomp sqlmgmproviderxpsp2up.mo
f
Microsoft (R) 32-bit MOF Compiler Version 5.2.3790.3959
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
Parsing MOF file: sqlmgmproviderxpsp2up.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while processing item 1 defined on lines 4 - 7 in file sqlmgmp
roviderxpsp2up.mof:
Error Number: 0x80041003, Facility: WMI
Description: Access denied
Compiler returned error 0x80041001

C:\Program Files\Microsoft SQL Server\90\Shared>

What permissions are causing this error to occur?

Any assistance is welcome.

Thank you.
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

Zack, instead of providing us an article, I think it will be better if you provide us the information of what you originally tried to do for the error being thrown?
Avatar of Zack

ASKER

HI Vitor,

Can do please see the attached screenshot of the error message.

Thank you.
WMI-Error-message.PNG
That's the error message and we already know about it. My question is what kind of operation you're doing for the error appear.
Avatar of Zack

ASKER

Hi Vitor,

In CMD I navigated to the C:\Program Files\Microsoft SQL Server\90\Shared folder
and ran the command: mofcomp sqlmgmproviderxpsp2up.mof

Error message:

Microsoft (R) 32-bit MOF Compiler Version 5.2.3790.3959
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
Parsing MOF file: sqlmgmproviderxpsp2up.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while processing item 1 defined on lines 4 - 7 in file sqlmgmp
roviderxpsp2up.mof:
Error Number: 0x80041003, Facility: WMI
Description: Access denied
Compiler returned error 0x80041001

Thank you.
Avatar of Zack

ASKER

Hi Vitor,

Additional I was running in CMD as the administrator.

Thank you.
Ok.
Did you try to open the CMD prompt as Administrator? Usually this will give you admin rights and it may solve the access denied issue.
Avatar of Zack

ASKER

Hi Vitor,

I did open the CMD prompt as Administrator.

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zack

ASKER

That got it running the mofcomp.exe command that from that folder fixed the issue.

Thank you.
So it might be some incompatible issue.
Avatar of Zack

ASKER

Hi Vitor,

I presume so it's old box. In either case, it's overdue for an OS install and upgrades.

Thank you.