sql server 2005 WMI编译错误 解决方法
2007-11-15 19:05
513 查看
今天在安装sql server 2005是遇到错误,提示 :
"SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/Binn/etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation."
解决方案如下:
建立一个bat脚本,内容如下
net stop winmgmt
c:
cd %systemroot%/system32/wbem
rd /S /Q repository
regsvr32 /s %systemroot%/system32/scecli.dll
regsvr32 /s %systemroot%/system32/userenv.dll
mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
echo DONE reboot
pause
"SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/Binn/etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation."
解决方案如下:
建立一个bat脚本,内容如下
net stop winmgmt
c:
cd %systemroot%/system32/wbem
rd /S /Q repository
regsvr32 /s %systemroot%/system32/scecli.dll
regsvr32 /s %systemroot%/system32/userenv.dll
mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
echo DONE reboot
pause
相关文章推荐
- SQL Server 2005 服务启动失败 1069错误(由于登录失败而无法启动服务)解决方法
- 用VS2005在Release配置下编译出现清单文件的错误的解决方法
- ADO连接数据库,编译到客户机运行时出现CreateInstance报错0x80004002、CreateParameter报0xC0000005错误的解决方法。
- VS2013仿真emwin[ucgui]时出现编译错误的解决方法
- SQL Server 2005 18452登录错误 的解决方法
- SQL Server 2005 安装遇到的错误提示和解决方法
- 非OpenGL版本的Qt使用QGLWidget构建OPenGL应用须知与编译错误解决方法
- "provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接"错误的解决方法
- 使用wxWidgets编译的Windows Mobile程序运行时提示“SHCreateMenuBar failed”错误的解决方法
- COM+编译错误的解决方法
- 解决SQL Server 2008安装时出现“ 不能在控件上调用 Invoke 或 BeginInvoke ”错误的方法
- 编译android7.0 sdk错误解决方法
- koala 编译 sass 出现 Syntax error: Invalid GBK character 中文错误解决方法
- SQL Server 2005 18452登录错误的解决方法
- ruby环境sass编译中文出现Syntax error: Invalid GBK character错误解决方法
- ios5 xcode 4.2 中 release显示编译警告或错误的解决方法
- android studio 进行JNI编译时出现” 编码GBK的不可映射字符 “的错误的解决方法
- 编译3.10内核 出现错误 “undefined reference to...." 解决方法
- SQL SERVER出现大量一致性错误的解决方法
- Android 开发环境搭建 与在编译中遇到错误make Error 45解决方法