Avatar of Zack
Zack
Flag 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.
Microsoft SQL ServerMicrosoft SQL Server 2005

Avatar of undefined
Last Comment
Zack

8/22/2022 - Mon
Vitor Montalvão

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?
Zack

ASKER
HI Vitor,

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

Thank you.
WMI-Error-message.PNG
Vitor Montalvão

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.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
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.
Zack

ASKER
Hi Vitor,

Additional I was running in CMD as the administrator.

Thank you.
Vitor Montalvão

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.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Zack

ASKER
Hi Vitor,

I did open the CMD prompt as Administrator.

Thank you.
ASKER CERTIFIED SOLUTION
Vitor Montalvão

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Zack

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

Thank you.
Vitor Montalvão

So it might be some incompatible issue.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
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.