Меню

Sql server configuration manager ошибка

I cant open my SQL server configuration manager getting this error message:

Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager. 
Invalid

I have searched online material and ran the mofcomp command as recommended: mofcomp “C:Program Files (x86)Microsoft SQL Server120Sharedsqlmgmproviderxpsp2up.mof”

I am now getting this error message:

MOF file has been successfully parsed
Storing data in the repository…
An error occurred while processing item 10 defined on lines 73 – 79 in file C:Program Files (x86)Microsoft SQL Server120Sharedsqlmgmproviderxpsp2up.mof:
Compiler returned error 0x80070005Error Number: 0x80070005, Facility: Win32
Description: Access is denied.

Can you please help me out, been 2 weeks sited with this problem

asked Jun 26, 2017 at 5:52

Immortal's user avatar

7

Run Cmd as Administrator and execute these commands:

First go to SQL Shared folder according to your sql version:

SQL 2008: C:Program Files (x86)Microsoft SQL Server100Shared
SQL 2012: C:Program Files (x86)Microsoft SQL Server110Shared
SQL 2014: C:Program Files (x86)Microsoft SQL Server120Shared
SQL 2017: C:Program Files (x86)Microsoft SQL Server140Shared ——-> My version is 2017
SQL 2019: C:Program Files (x86)Microsoft SQL Server150Shared

Find more versions here

cd "C:Program Files (x86)Microsoft SQL Server140Shared"

Then:

mofcomp sqlmgmproviderxpsp2up.mof

Update:

The problem occurs because the Windows Management Instrumentation (WMI) provider configuration file for manage SQL Server services is missing. So the mofcomp command repairs or recreates it.

Here is more explanation:
https://learn.microsoft.com/en-us/windows/desktop/wmisdk/mofcomp

LuizLoyola's user avatar

answered Aug 4, 2018 at 11:10

Fereydoon Barikzehy's user avatar

5

Run the @Fereydoon Barkzehy codes with Administrative Access

Sample —

  cd C:Program Files (x86)Microsoft SQL Server110Shared
  cd C:Program Files (x86)Microsoft SQL Server140Shared
  mofcomp sqlmgmproviderxpsp2up.mof

depends on where the file «sqlmgmproviderxpsp2up.mof» is present

Youtube video

answered Mar 16, 2019 at 14:00

Arun Prasad E S's user avatar

Arun Prasad E SArun Prasad E S

9,1198 gold badges73 silver badges84 bronze badges

1

The best solution for me was to uninstall the instance and reinstall a fresh instance. This worked 100%.

Arun Prasad E S's user avatar

answered Jul 3, 2017 at 7:55

Immortal's user avatar

ImmortalImmortal

1,0931 gold badge12 silver badges35 bronze badges

1

What worked for me was to download the SQLEXPR_x64_Enu, run the Setup.exe and use the Repair option.

answered Apr 16, 2020 at 10:37

Nitish Bannur's user avatar

I have the same issue but it is not working at first. Second I already restarted my PC but it is not working either. What I found out is that you will run this on the folder where your SQL Server Management Studio is installed and not on the MS SQL Instance folder.

My SQL Server Management Studio which is 2016 is installed in

C:Program Files (x86)Microsoft SQL Server130

But I keep on running changing folder on which I installed on my SQL Server 2012 instance:

C:Program Files (x86)Microsoft SQL Server110Shared

After that, just run the command: mofcomp sqlmgmproviderxpsp2up.mof as everyone suggest in here.

So keep it mind the folder since that may affect your troubleshooting.

answered Aug 16, 2020 at 0:47

Willy David Jr's user avatar

Willy David JrWilly David Jr

8,3505 gold badges44 silver badges53 bronze badges

By trial and error I finally found this working solution:

  1. I searched all sqlmgmproviderxpsp2up.mof files under C:Program Files (x86)Microsoft SQL Server

  2. Running CMD as administrator I did for each result found above:

    i) Change directory to go to the directory

    ii) Run mofcomp sqlmgmproviderxpsp2up.mof

  3. Reboot

Then, it works.

RBT's user avatar

RBT

23k21 gold badges155 silver badges231 bronze badges

answered Oct 7, 2019 at 11:14

UnDiUdin's user avatar

UnDiUdinUnDiUdin

14.6k37 gold badges145 silver badges243 bronze badges

doing a fresh OS installation also worked for me as well. but this is a pain. Sometimes you can run the:

“C:Program Files (x86)Microsoft SQL Server120Sharedsqlmgmproviderxpsp2up.mof”

Sometimes it helps and sometimes it doesn’t, all you need to do is do a fresh OS installation and then SQL installation.

Arun Prasad E S's user avatar

answered Jul 6, 2017 at 7:17

  • Remove From My Forums
  • Вопрос

  • I installed the latest version (v17.2) of SQL Server on a new PC, and when trying to access «SQL Server 2017 RC1 Configuration Manager» I’m receiving the following error message: 

    «Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager. Invalid namespace [0x8004100e]»

    I’ve tried the following steps to fix this issue and none of them have worked:

    • Updated permissions in Registry Editor [1]
    • Enabled inbound firewall rule [2]
    • Updated and restarted the WMI Service [3]

    Does anyone have any idea of how to resolve this issue? I’m just trying to create a local server for personal use. This has become a headache.

    Sources: 

    1. https://blog.sqlauthority.com/2017/05/20/sql-server-configuration-manager-cannot-connect-wmi-provider-not-permission-server-unreachable/
    2. https://social.msdn.microsoft.com/Forums/en-US/2d89a720-cf52-49fd-a0ca-b0e93fa3c18b/sql-server-configuration-manager-remote-access?forum=sqlkjmanageability
    3. https://support.microsoft.com/en-us/help/956013/error-message-when-you-open-sql-server-configuration-manager-in-sql-se

    • Изменено

      19 августа 2017 г. 3:12
      version

In some cases where you might try to launch SQL Server Configuration Manager, you might get the error message: Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager.
Invalid namespace [0x8004100e]

Is SQL Server Configuration Manager Really Needed?

Easy answer: of course it is!

Even though you can still control SQL Server services via Windows Services (services.msc), in order to have full control, you still need SQL Server Configuration Manager.

For example, if you want to set up SQL Server in order to use SSL certificate you need SQL Server Configuration Manager.

Moreover, if you want to change the network settings for your SQL Server services, again, you will need SQL Server Configuration Manager.

There are more examples that can justify the usefulness of SQL Server Configuration Manager but, I’m pretty sure you got the picture 🙂


Learn more tips like this! Enroll to our Online Course!

Check our online course titled “Essential SQL Server Administration Tips” (special limited-time discount included in link).

Learn essential hands-on SQL Server Administration tips on SQL Server maintenance, security, performance, integration, error handling and more. Many live demonstrations and downloadable resources included!

Essential SQL Server Administration Tips - Online Course with Live Demonstrations and Hands-on Guides

(Lifetime Access/ Live Demos / Downloadable Resources and more!)

Enroll from $12.99


Why I Got this Error Message?

If you performed several installations and uninstallations of SQL Server components on the machine, then under certain circumstances thi might cause the abovementioned issue with SQL Server Configuration Manager.

How to Get SQL Server Configuration to Work Again

As per Microsoft’s official support documentation, you can easily fix this issue.

So, in order to fix the issue, you can open an elevated command prompt (Run as Administrator) and execute the below command, after of course you replace “number” with the version of SQL Server in terms of number.

mofcomp "%programfiles(x86)%Microsoft SQL ServernumberSharedsqlmgmproviderxpsp2up.mof"

In order to find the right version number, please check the below table:

SQL Server Version Version Number
2022 160
2019 150
2017 140
2016 130
2014 120
2012 110
2008/R2 100
2005 90

So, if for example, you want to fix the SQL Server 2016 Configuration Manager, you would run the below command in an elevated command prompt (Run as Administrator):

mofcomp "%programfiles(x86)%Microsoft SQL Server130Sharedsqlmgmproviderxpsp2up.mof"

Cannot Connect to WMI Provider (SQL Server Configuration Manager) - Article on SQLNetHub

An Alternative Way to Launch SQL Server Configuration Manager

Last but not least, there is an alternative approach to start SQL Server Configuration Manager. Again, from the command line, you can run the corresponding command for each SQL Server version as provided in the below table:

SQL Server Version Command
2022 SQLSERVERMANAGER16.msc
2019 SQLSERVERMANAGER15.msc
2017 SQLSERVERMANAGER14.msc
2016 SQLSERVERMANAGER13.msc
2014 SQLSERVERMANAGER12.msc
2012 SQLSERVERMANAGER11.msc
2008/R2 SQLSERVERMANAGER10.msc
2005 SQLSERVERMANAGER9.msc

Featured Online Courses:

  • SQL Server 2022: What’s New – New and Enhanced Features [New]
  • Data Management for Beginners – Main Principles
  • Introduction to Azure Database for MySQL
  • Working with Python on Windows and SQL Server Databases
  • Boost SQL Server Database Performance with In-Memory OLTP
  • Introduction to Azure SQL Database for Beginners
  • Essential SQL Server Administration Tips
  • SQL Server Fundamentals – SQL Database for Beginners
  • Essential SQL Server Development Tips for SQL Developers
  • Introduction to Computer Programming for Beginners
  • .NET Programming for Beginners – Windows Forms with C#
  • SQL Server 2019: What’s New – New and Enhanced Features
  • Entity Framework: Getting Started – Complete Beginners Guide
  • A Guide on How to Start and Monetize a Successful Blog
  • Data Management for Beginners – Main Principles

Read Also

Feel free to check our other relevant articles on SQL Server troubleshooting:

  • Error converting data type varchar to numeric
  • The Database Engine system data directory in the registry is not valid
  • Error converting data type varchar to float
  • An error occurred in a SQL Server Service Broker/Database Mirroring transport connection endpoint (9642) – How to Resolve
  • There is not enough space on the disk. (mscorlib)
  • A network-related or instance-specific error occurred while establishing a connection to SQL Server
  • SQLServerAgent could not be started (reason: Unable to connect to server ‘(local)’; SQLServerAgent cannot start)
  • ORDER BY items must appear in the select list if SELECT DISTINCT is specified
  • There is no SQL Server Failover Cluster Available to Join
  • There is insufficient system memory in resource pool ‘internal’ to run this query.
  • The SELECT permission was denied on the object ‘extended_properties’, database ‘mssqlsystemresource’, schema ‘sys’.
  • The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value
  • SQL Server replication requires the actual server name to make a connection to the server – How to Resolve it
  • Issue Adding Node to a SQL Server Failover Cluster – Greyed Out Service Account – How to Resolve
  • initerrlog: could not open error log file. Operating system error=3 … – How to Resolve It
  • Resolve SQL Server CTE Error – Incorrect syntax near ‘)’.
  • SQL Server is Terminating Because of Fatal Exception 80000003 – How to Troubleshoot
  • An existing History Table cannot be specified with LEDGER=ON – How to Resolve
  • … all SQL Server troubleshooting articles

Featured Database Productivity Tools

Snippets Generator: Create and modify T-SQL snippets for use in SQL Management Studio, fast, easy and efficiently.

Snippets Generator - SQL Snippets Creation Tool

Learn more

Dynamic SQL Generator: Convert static T-SQL code to dynamic and vice versa, easily and fast.

Dynamic SQL Generator: Easily convert static SQL Server T-SQL scripts to dynamic and vice versa.

Learn more

Subscribe to our newsletter and stay up to date!

Check out our latest software releases!

Check our eBooks!

Rate this article: 1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)

Loading…

Reference: SQLNetHub.com (https://www.sqlnethub.com)

© SQLNetHub

Artemakis Artemiou

Artemakis Artemiou is a Senior SQL Server Architect, Author, a 9 Times Microsoft Data Platform MVP (2009-2018). He has over 20 years of experience in the IT industry in various roles. Artemakis is the founder of SQLNetHub and {essentialDevTips.com}. Artemakis is the creator of the well-known software tools Snippets Generator and DBA Security Advisor. Also, he is the author of many eBooks on SQL Server. Artemakis currently serves as the President of the Cyprus .NET User Group (CDNUG) and the International .NET Association Country Leader for Cyprus (INETA). Moreover, Artemakis teaches on Udemy, you can check his courses here.

Views: 14,483

Hi,

My Os is Windows 7 Enterprise.

I have Sql Server 2008 Developer Edt. with sp1

and Sql Server 2005 express (which comes with Visual Studio)

When I try to open Configuration Manager it fails:

Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later server with SQL Server Configuration Manager.

Invalid class [0x80041010]

I’ve tried everything I could find on the net. But none of them worked for me.

Later, I realised that the file called «sqlwep-uni.mof» under «c:Program FilesMicrosoft SQL ServerMSSQL10.INSTANCENAMEMSSQLBinn» has failed with mofcomp command.

Microsoft (R) MOF Compiler Version 6.1.7600.16385

Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.

Parsing MOF file: sqlwep-uni.mof

MOF file has been successfully parsed

Storing data in the repository…

An error occurred while processing item 4 defined on lines 88 — 88 in file sqlwep-uni.mof:

Error Number: 0x8004100e, Facility: WMI

Description: Invalid namespace

Compiler returned error 0x8004100e

Any suggestions?

Hi,

My Os is Windows 7 Enterprise.

I have Sql Server 2008 Developer Edt. with sp1

and Sql Server 2005 express (which comes with Visual Studio)

When I try to open Configuration Manager it fails:

Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later server with SQL Server Configuration Manager.

Invalid class [0x80041010]

I’ve tried everything I could find on the net. But none of them worked for me.

Later, I realised that the file called «sqlwep-uni.mof» under «c:Program FilesMicrosoft SQL ServerMSSQL10.INSTANCENAMEMSSQLBinn» has failed with mofcomp command.

Microsoft (R) MOF Compiler Version 6.1.7600.16385

Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.

Parsing MOF file: sqlwep-uni.mof

MOF file has been successfully parsed

Storing data in the repository…

An error occurred while processing item 4 defined on lines 88 — 88 in file sqlwep-uni.mof:

Error Number: 0x8004100e, Facility: WMI

Description: Invalid namespace

Compiler returned error 0x8004100e

Any suggestions?

Posted by blakhani on September 4, 2014

While launching SQL Server Configuration Manager on one of my machine, I got below error

image

Here is the text of the error message:

—————————
SQL Server Configuration Manager
—————————
Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager.
Invalid class [0x80041010]
—————————
OK  
—————————

There might be various reason for this error. In this case our actual problem is “Invalid class” which I have highlighted above. I have looked further and found that below is the solution for me. Same solution also works for Invalid namespace [0x8004100e] error also. 

image

C:WINDOWSsystem32>mofcomp «C:Program Files (x86)Microsoft SQL Server120Sharedsqlmgmproviderxpsp2up.mof»
Microsoft (R) MOF Compiler Version 6.3.9600.16384
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: C:Program Files (x86)Microsoft SQL Server120Sharedsqlmgmproviderxpsp2up.mof
MOF file has been successfully parsed
Storing data in the repository…
Done!

MofComp is a command line utility to compile MOF (Managed Object Format) files and store the data in WMI repository. The MOF Compiler is available in the %Windir%System32wbem directory. So if you are getting “‘mofcomp’ is not recognized as an internal or external command then try changing current directory from command prompt to %Windir%System32wbem

Also note that in mof file on my machine is under 120 folder. Depends on SQL version installed, you may have it in different folder. The value of that number depends on the version of SQL Server.

Microsoft SQL Server 2014

120

Microsoft SQL Server 2012

110

Microsoft SQL Server 2008 R2

100

Microsoft SQL Server 2008

100

Microsoft SQL Server 2005

90

Hope this helps.

  • Cheers,
  • Balmukund Lakhani
  • Twitter @blakhani
  • Author: SQL Server 2012 AlwaysOnPaperback, Kindle
  • This entry was posted on September 4, 2014 at 3:30 AM and is filed under Error, Troubleshooting.
    Tagged: Cannot connect to WMI provider, Invalid class [0x80041010], Invalid namespace [0x8004100e], sql server configuration manager. You can follow any responses to this entry through the RSS 2.0 feed.

    You can leave a response, or trackback from your own site.

    Если не запускается Configuration Manager

      cd C:Program Files (x86)Microsoft SQL Server110Shared
      cd C:Program Files (x86)Microsoft SQL Server140Shared
      mofcomp sqlmgmproviderxpsp2up.mof
    

    Папка зависит от версии: 

    SQL 2008: C:Program Files (x86)Microsoft SQL Server100Shared
    SQL 2012: C:Program Files (x86)Microsoft SQL Server110Shared
    SQL 2014: C:Program Files (x86)Microsoft SQL Server120Shared
    SQL 2017: C:Program Files (x86)Microsoft SQL Server140Shared 
    SQL 2019: C:Program Files (x86)Microsoft SQL Server150Shared

    Источник: https://stackoverflow.com/questions/44753745/sql-server-config-manager-error-cannot-connect-to-wmi-provider

    Насколько полезной была статья?

    Что еще посмотреть по SQL Server

    Создайте концепцию проекта на основе нашего шаблона и получите оценку проекта в виде КП.

    Базисные решения, которые можно гибко адаптировать под себя: менять внешний вид, бизнес-логику и даже структуру базы данных.

    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии

    А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Sql server 2008 журнал ошибок
  • Sql server 2005 ошибка 10054