以管理员身份运行“命令提示符”(在附件下面),进入后执行以下命令
1)cd /d C:/Program files/Microsoft sql Server/90/Shared
2)mofcomp "C:/Program files/Microsoft sql Server/90/Shared/sqlmgmprovIDerxpsp2up.mof"
提示 ’C:/Program files/Microsoft sql Server/90/Shared/sqlmgmprovIDerxpsp2up.mof‘ not found.
把下面内容作相应修改保存为sqlmgmprovIDerxpsp2up.mof 再重新执行就OK了。
#pragma autorecover
#pragma namespace("////.//Root")
Instance of __namespace
{
name = "Microsoft";
};
#pragma namespace("////.//Root//Microsoft")
Instance of __namespace
{
name = "sqlServer";
};
#pragma namespace("////.//root//Microsoft//SqlServer")
Instance of __namespace
{
name = "ComputerManagement10";
};
#pragma namespace("////.//root//Microsoft//SqlServer//ComputerManagement10")
Instance of __Win32ProvIDer as $InstProv
{
name = "RegProv";
ClsID = "{fe9af5c0-d3b6-11ce-a5b6-00aa00680c3f}";
ImpersonationLevel = 1;
PerUserInitialization = TRUE;
HostingModel = "NetworkServiceHost";
};
Instance of __InstanceProvIDerRegistration
{
ProvIDer = $InstProv;
SupportsPut = TRUE;
SupportsGet = TRUE;
SupportsDelete = TRUE;
SupportsEnumeration = TRUE;
};
Instance of __Win32ProvIDer as $P
{
name = "MSsql_ManagementProvIDer";
ClsID = "{fa7b9900-86b5-4d97-a91c-dd62cff7786b}";
ImpersonationLevel = 1;
PerUserInitialization = TRUE;
HostingModel = "NetworkServiceHost";
};
Instance of __InstanceProvIDerRegistration
{
ProvIDer = $P;
SupportsGet = TRUE;
SupportsPut = TRUE;
SupportsDelete = TRUE;
SupportsEnumeration = TRUE;
querySupportLevels = {"WQL:UnarySelect"};
};
Instance of __MethodProvIDerRegistration
{
ProvIDer = $P;
};
[dynamic,provIDer("RegProv"),ClassContext("local|HKEY_LOCAL_MACHINE//SOFTWARE//Microsoft//Microsoft sql Server//Services//")]
class RegServices
{
[key] string ServiceType;
[PropertyContext("name")] string name;
[PropertyContext("Lname")] string Lname;
[PropertyContext("Type")] uint32 Type;
};
Instance of RegServices
{
Lname = "msftesql$";
name = "msftesql";
ServiceType = "Full Text";
Type = 3;
};
Instance of RegServices
{
Lname = "MSolAP$";
name = "MSsqlServerolAPService";
ServiceType = "Analysis Server";
Type = 5;
};
Instance of RegServices
{
Lname = "sqlAgent$";
name = "sqlSERVERAGENT";
ServiceType = "sql Agent";
Type = 2;
};
Instance of RegServices
{
Lname = "MSsql$";
name = "MSsqlServer";
ServiceType = "sql Server";
Type = 1;
};
Instance of RegServices
{
Lname = "reportserver$";
name = "reportserver";
ServiceType = "reportserver";
Type = 6;
};
Instance of RegServices
{
Lname = "";
name = "MsDtsServer";
ServiceType = "SSIS Server";
Type = 4;
};
Instance of RegServices
{
Lname = "";
name = "sqlbrowser";
ServiceType = "sql browser";
Type = 7;
};
Instance of RegServices
{
Lname = "NS$";
name = "NsService";
ServiceType = "Notification Services";
Type = 8;
};
Instance of RegServices
{
Lname = "MSsqlFDLauncher$";
name = "MSsqlFDLauncher";
ServiceType = "Full-text Filter Daemon Launcher";
Type = 9;
};
[dynamic,provIDer("MSsql_ManagementProvIDer")]
class sqlService
{
[key,read : ToInstance] string Servicename;
[key,read : ToInstance] uint32 sqlServiceType;
[read,MapPingStrings{"Win32API|Service Structures|query_SERVICE_CONfig|lpBinaryPathname"}] string BinaryPath;
[read] string Hostname;
[ValueMap{"0","1","2","3","4"},Values{"Boot","System","automatic","Manual","Disabled"} : ToInstance,read] uint32 StartMode;
[read,MapPingStrings{"Win32API|Service Structures|SERVICE_STATUS|DWControlsAccepted|SERVICE_ACCEPT_PAUSE_CONTINUE"}] boolean AcceptPause;
[read,MapPingStrings{"Win32API|Service Structures|SERVICE_STATUS|DWControlsAccepted|SERVICE_ACCEPT_Stop"}] boolean AcceptStop;
[read,MapPingStrings{"Win32API|Service Structures|query_SERVICE_CONfig|lpdisplayname"}] string displayname;
[read,MapPingStrings{"Win32API|Service Structures|query_SERVICE_CONfig|DWErrorControl"},Values{"Ignore","normal","Severe","Critical","UnkNown"},ValueMap{"Ignore","UnkNown"}] uint32 ErrorControl;
[read,MapPingStrings{"Win32API|Service Structures|query_SERVICE_CONfig|lpServiceStartname"}] string Startname;
[read,MapPingStrings{"Win32API|Service Structures|SERVICE_STATUS|DWCurrentState "},Values{"1","4","5","6","7"},ValueMap{"Stopped","Start Pending","Stop Pending","Running","Continue Pending","Pause Pending","Paused"}] uint32 State;
[read,MapPingStrings{"Win32API|Service Structures|SERVICE_STATUS_PROCESS|DWProcessID"}] uint32 ProcessID;
[read,MapPingStrings{"Win32API|Service Structures|SERVICE_STATUS|DWWin32ExitCode"}] uint32 ExitCode;
[read] string Description;
[read] string DependencIEs[];
[Implemented,MapPingStrings{"Win32API|Service Functions|ControlService|DWControl|SERVICE_CONTRol_Stop"} : ToSubclass] uint32 StopService();
[Implemented,Values{"Success","Not Supported","Access DenIEd","Dependent Services Running","InvalID Service Control","Service Cannot Accept Control","Service Not Active","Service Request Timeout","UnkNown Failure","Path Not Found","Service Already Running","Service Database Locked","Service Dependency Deleted","Service Dependency Failure","Service Disabled","Service logon Failed","Service Marked For Deletion","Service No Thread","Status Circular Dependency","Status Duplicate name","Status InvalID name","Status InvalID Parameter","Status InvalID Service Account","Status Service Exists","Service Already Paused"},MapPingStrings{"Win32API|Service Functions|StartService"}] uint32 StartService();
[Implemented,MapPingStrings{"Win32API|Service Functions|ControlService|DWControl|SERVICE_CONTRol_PAUSE"}] uint32 PauseService();
[Implemented,MapPingStrings{"Win32API|Service Functions|ControlService|DWControl|SERVICE_CONTRol_CONTINUE"}] uint32 ResumeService();
[Implemented] uint32 SetServiceAccount([in] string ServiceStartname,[in] string ServiceStartPassword);
[Implemented] uint32 SetServiceAccountPassword([in] string AccountoldPassword,[in] string AccountNewPassword);
[Implemented] uint32 SetStartMode([in] uint32 StartMode);
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class sqlServiceAdvancedProperty
{
[key,read : ToInstance] uint32 sqlServiceType;
[key,read] string Propertyname;
[key,read] uint32 PropertyIndex;
[read] uint32 PropertyValueType;
[read] uint32 PropertyNumValue;
[read] string PropertyStrValue;
[read] boolean IsReadonly;
[Implemented] uint32 SetNumericalValue([IN] uint32 NumValue);
[Implemented] uint32 SetStringValue([IN] string StrValue);
[Implemented] uint32 SetBoolValue([IN] uint32 BoolValue);
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class SecurityCertificate
{
[key,read : ToInstance] string SHA;
[read] string IssuedTo;
[read] string IssuedBy;
[read] string FrIEndlyname;
[key,read : ToInstance] string name;
[read] uint32 ExpirationDate;
[read] uint32 StartDate;
[read] sint32 Context[];
[key,read : ToInstance] string SystemStore;
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class ClIEntSettings
{
[key,read : ToInstance] string Instancename;
[Implemented] uint32 SetDefaults([IN] boolean Overwriteall);
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class ClIEntNetlibInfo
{
[key,read : ToInstance] string Protocolname;
[key,read : ToInstance] string filename;
[read] string Protocoldisplayname;
[read] string Version;
[read] uint32 Date;
[read] uint32 Size;
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class ClIEntNetworkProtocol
{
[key,read : ToInstance] string Protocolname;
[read] uint32 Protocolorder;
[read] string Protocoldisplayname;
[read] string ProtocolDLL;
[read] boolean SupportAlias;
[Implemented] uint32 GetNextOrderValue();
[Implemented] uint32 SetorderValue([IN] uint32 OrderValue);
[Implemented] uint32 SetEnable();
[Implemented] uint32 Setdisable();
[Implemented] uint32 SetProtocolsOrder([IN] string ProtocolorderList[]);
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class ClIEntNetworkProtocolProperty
{
[key,read : ToInstance] uint32 PropertyType;
[key,read : ToInstance] uint32 PropertyIDx;
[read] string Propertyname;
[read] uint32 PropertyValType;
[read] uint32 PropertyNumVal;
[read] string PropertyStrVal;
[Implemented] uint32 SetNumericalValue([IN] uint32 NumValue);
[Implemented] uint32 SetStringValue([IN] string StrValue);
[Implemented] uint32 SetFlag([IN] boolean BoolValue);
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class sqlServerAlias
{
[key] string Aliasname;
string Servername;
string Protocolname;
string ConnectionString;
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class ServerNetworkProtocol
{
[key,read : ToInstance] string Instancename;
[key,read : ToInstance] string Protocolname;
[read] string Protocoldisplayname;
[read] boolean Enabled;
[read] boolean MultiIpConfigurationSupport;
[Implemented] uint32 SetEnable();
[Implemented] uint32 Setdisable();
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class ServerNetworkProtocoliPAddress
{
[key,read : ToInstance] string IpAddressname;
[read] boolean Enabled;
[Implemented] uint32 SetEnable();
[Implemented] uint32 Setdisable();
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class ServerNetworkProtocolProperty
{
[key,read : ToInstance] string IPAddressname;
[key,read : ToInstance] string Propertyname;
[key,read : ToInstance] uint32 PropertyType;
[read] uint32 PropertyValType;
[read] uint32 PropertyNumVal;
[read] string PropertyStrVal;
[Implemented] uint32 SetNumericalValue([IN] uint32 NumValue);
[Implemented] uint32 SetStringValue([IN] string StrValue);
[Implemented] uint32 SetFlag([IN] boolean BoolValue);
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class ServerSettings
{
[key,read : ToInstance] string Instancename;
[Implemented] uint32 SetDefaults([IN] boolean Overwriteall);
[Implemented] uint32 GetCurrentCertificate([OUT] string SHA);
[Implemented] uint32 SetCurrentCertificate([IN] string SHA);
[Implemented] uint32 RemoveCertificate();
[Implemented] uint32 GetDacTcpPort([OUT] string Port);
[Implemented] uint32 SetDacTcpPort([IN] string Port);
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class ServerSettingsGeneralFlag
{
[key,read : ToInstance] string Flagname;
[read] boolean FlagValue;
[Implemented] uint32 SetValue([IN] boolean Value);
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe]
class ClIEntSettingsGeneralFlag
{
[key,read : ToInstance] uint32 FlagIndex;
[read] string Flagname;
[read] boolean FlagValue;
[Implemented] uint32 SetValue([IN] boolean Value);
};
[provIDer("MSsql_ManagementProvIDer") : ToInstance ToSubclass,dynamic : ToInstance disableOverrIDe] class filestreamSettings{ [key,read : ToInstance] string Instancename; [read] uint32 AccessLevel; [read] string Sharename; [read] string RsFxVersion; [read] boolean IncompleteOperation; [read] boolean IsClustered; [Implemented] uint32 Enablefilestream([IN] uint32 AccessLevel,[IN] string Sharename);};
总结以上是内存溢出为你收集整理的SqlServer配置管理器“无法连接到WMI提供程序。您没有权限或者该服务器无法访问。”全部内容,希望文章能够帮你解决SqlServer配置管理器“无法连接到WMI提供程序。您没有权限或者该服务器无法访问。”所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)