﻿{"id":588,"date":"2009-10-17T21:56:00","date_gmt":"2009-10-17T13:56:00","guid":{"rendered":"http:\/\/blog.jixin.ntxz.net\/?p=588"},"modified":"2010-07-30T15:41:39","modified_gmt":"2010-07-30T07:41:39","slug":"sql-server-2005-wmi%e7%bc%96%e8%af%91%e9%94%99%e8%af%af-%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.ntxz.net\/?p=588","title":{"rendered":"sql server 2005 WMI\u7f16\u8bd1\u9519\u8bef \u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>\u4eca\u5929\u5728\u5b89\u88c5SQL Server 2005\u662f\u9047\u5230\u9519\u8bef,\u63d0\u793a :<\/p>\n<p>&#8220;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 &#8220;Troubleshooting an Installation of SQL Server 2005&#8221; or &#8220;How to: View SQL Server 2005 Setup Log Files&#8221; in SQL Server 2005 Setup Help documentation.&#8221;<\/p>\n<p>\u89e3\u51b3\u65b9\u6848\u5982\u4e0b:\uff08\u7f51\u60a0\u5efa\u597d\u7684BAT\u6587\u4ef6\u4e0b\u8f7d\uff09<\/p>\n<p>\u5efa\u7acb\u4e00\u4e2abat\u811a\u672c,\u5185\u5bb9\u5982\u4e0b(\u76f4\u63a5\u53cc\u51fb\u8fd0\u884c\uff0c\u90a3\u4e2aBAT\u6587\u4ef6\u5373\u53ef\uff09<\/p>\n<p>net stop winmgmt<br \/>c: <br \/>cd %systemroot%\\system32\\wbem <br \/>rd \/S \/Q repository <br \/>&nbsp;<\/p>\n<p>regsvr32 \/s %systemroot%\\system32\\scecli.dll <br \/>regsvr32 \/s %systemroot%\\system32\\userenv.dll <br \/>&nbsp;<\/p>\n<p>mofcomp cimwin32.mof <br \/>mofcomp cimwin32.mfl <br \/>mofcomp rsop.mof <br \/>mofcomp rsop.mfl <br \/>for \/f %%s in (&#8221;dir \/b \/s *.dll&#8221;) do regsvr32 \/s %%s <br \/>for \/f %%s in (&#8221;dir \/b *.mof&#8221;) do mofcomp %%s <br \/>for \/f %%s in (&#8221;dir \/b *.mfl&#8221;) do mofcomp %%s <br \/>echo DONE reboot <br \/>pause <\/p>\n<p>\u7f51\u60a0\u5efa\u597d\u7684BAT\u6587\u4ef6\u4e0b\u8f7d<br \/>\/\/*\u8be5\u6587\u7ae0\u8f6c\u81ea[\u7f51\u60a0\u7f51\u7edc-http:\/\/www.CnBytes.CN]\uff0c\u539f\u6587\u94fe\u63a5\uff1a<a href=\"http:\/\/www.cnbytes.cn\/Article\/Tech\/serverjs\/SQLjs\/mssql\/200910\/24979.html\">http:\/\/www.cnbytes.cn\/Article\/Tech\/serverjs\/SQLjs\/mssql\/200910\/24979.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5728\u5b89\u88c5SQL Server 2005\u662f\u9047\u5230\u9519\u8bef,\u63d0\u793a : &#8220;SQL Server Setup  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[],"class_list":["post-588","post","type-post","status-publish","format-standard","hentry","category-1","category-oldblog"],"views":495,"_links":{"self":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=588"}],"version-history":[{"count":1,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions"}],"predecessor-version":[{"id":843,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions\/843"}],"wp:attachment":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=588"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}