We're trying to run SQL Server Configuration Manager and getting the error
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.
Access is denied. [0x80070005]
based on the article found here, we have run
C:\Windows\system32>mofcomp "C:\Program Files (x86)\Microsoft SQL Server\110\Shared\sqlmgmproviderxpsp2up.mof"
and
C:\Windows\system32>mofcomp "C:\Program Files\Microsoft SQL Server\110\Shared\sqlmgmproviderxpsp2up.mof"
but we're getting the error
Microsoft (R) MOF Compiler Version 6.3.9600.16384
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: C:\Program Files\Microsoft SQL Server\110\Shared\sqlmgmprovide
rxpsp2up.mof
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\Microsoft SQL Server\110\Shared\sqlmgmproviderxpsp2up.mof:
Error Number: 0x80070005, Facility: Win32
Description: Access is denied.
Compiler returned error 0x80070005
We added the principal EVERYONE to with full permissions to the SQL Server root folder as well as the SQL Server SHARED folder. The SHARED folder has partial read-only status, but I prefer not to change that, because I can't set it back once this is done.
the file itself, sqlmgmproviderxpsp2up.mof, is NOT read only.
This is a Windows Server 2012, not in a domain, and I ran CMD as administrator (although I am administrator anyway). UAS is turned off. SQL Server 2012 Express, 64 bit.
Can anyone please help?
答案 0 :(得分:0)
确保启动winmgmt服务
以管理员身份启动CMD并执行以下命令
net start winmgmt
还要确保服务在
中自动启动services.msc
参考:
https://msdn.microsoft.com/en-us/library/aa826517(v=vs.85).aspx