sql server 2005 WMI编译错误 解决方法
今天在安装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文件下载)
建立一个bat脚本,内容如下(直接双击运行,那个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
网悠建好的BAT文件下载
//*该文章转自[网悠网络-http://www.CnBytes.CN],原文链接:http://www.cnbytes.cn/Article/Tech/serverjs/SQLjs/mssql/200910/24979.html