{"id":680,"date":"2013-11-22T17:12:38","date_gmt":"2013-11-22T09:12:38","guid":{"rendered":"http:\/\/blog.infinity.idv.tw\/index.php\/2013\/11\/22\/wsus-%e7%ae%a1%e7%90%86%e4%b8%bb%e6%8e%a7%e5%8f%b0%e7%84%a1%e6%b3%95%e9%80%8f%e9%81%8e%e9%81%a0%e7%ab%af-api-%e9%80%a3%e7%b7%9a%e5%88%b0-wsus-%e4%bc%ba%e6%9c%8d%e5%99%a8\/"},"modified":"2013-11-22T17:12:38","modified_gmt":"2013-11-22T09:12:38","slug":"wsus-%e7%ae%a1%e7%90%86%e4%b8%bb%e6%8e%a7%e5%8f%b0%e7%84%a1%e6%b3%95%e9%80%8f%e9%81%8e%e9%81%a0%e7%ab%af-api-%e9%80%a3%e7%b7%9a%e5%88%b0-wsus-%e4%bc%ba%e6%9c%8d%e5%99%a8","status":"publish","type":"post","link":"http:\/\/blog.infinity.idv.tw\/?p=680","title":{"rendered":"WSUS \u7ba1\u7406\u4e3b\u63a7\u53f0\u7121\u6cd5\u900f\u904e\u9060\u7aef API \u9023\u7dda\u5230 WSUS \u4f3a\u670d\u5668"},"content":{"rendered":"<p>\u5ffd\u7136WSUS Server\u7121\u6cd5\u9023\u7dda\u4e3b\u63a7\u53f0\uff0c\u670d\u52d9\u78ba\u5b9a\u90fd\u6b63\u5e38\uff0c\u4e14\u66f4\u65b0\u90fd\u6709\u5728\u904b\u4f5c\uff0c\u5230IIS\u7ad9\u53f0\u770b\u4e00\u4e0b\uff0c\u767c\u73feWSUS WEB\u4e0b\u6c92\u6709iisstart.htm\u4e3b\u9801\u6a94\u3002<\/p>\n<p>\u89e3\u6c7a\u65b9\u5f0f\uff0c\u522a\u9664 %appdata%\\Microsoft\\MMC\\ \u4e0b\u7684 WSUS \u6a94\u6848\uff0c\u79fb\u9664WSUS(\u8cc7\u6599\u5eab\u7b49\u4e09\u9805\u90fd\u7559\u4e0b)\uff0c\u91cd\u65b0\u5b89\u88ddWSUS\uff0c\u8b93IIS\u7684\u7db2\u9801\u8cc7\u6599\u91cd\u65b0\u8b93\u7cfb\u7d71\u88dd\u4e00\u6b21\uff0c\u78ba\u8a8dIIS\u7684\u7ad9\u53f0\u6709\u555f\u7528\uff0c\u5e95\u4e0b\u6709\u4e3b\u9801\u6a94\uff0c\u958b\u555f\u4e3b\u63a7\u53f0\uff0c\u624b\u52d5\u5efa\u7acb\u9023\u7dda IP PORT 80(\u8996\u4f60\u7684IIS\u8a2d\u5b9a)\uff0c\u679c\u7136\u5c31\u53ef\u4ee5\u6b63\u5e38\u9023\u7dda\u4e3b\u63a7\u53f0\u4e86\uff0c\u4e14\u4e4b\u524d\u7684\u8cc7\u6599\u90fd\u4fdd\u7559\uff0c\u4e0d\u7528\u91cd\u8a2d\u3002<\/p>\n<p>\u5370\u8c61\u4e2d\u4ee5\u524d\u4e5f\u767c\u751f\u904e\u4e00\u6b21\uff0c\u90a3\u6b21\u6211\u662f\u9023SERVER\u6574\u500b\u90fd\u91cd\u65b0\u5b89\u88dd\u4e00\u6b21\u2026\u2026\u2026\u2026\u2026\u5446\u963f~~<\/p>\n<p>====================================<\/p>\n<p>WSUS \u7ba1\u7406\u4e3b\u63a7\u53f0\u7121\u6cd5\u900f\u904e\u9060\u7aef API \u9023\u7dda\u5230 WSUS \u4f3a\u670d\u5668\u3002 <\/p>\n<p>\u8acb\u78ba\u8a8d Update Services \u670d\u52d9\u3001IIS \u548c SQL \u6b63\u5728\u6b64\u4f3a\u670d\u5668\u4e0a\u57f7\u884c\u3002\u5982\u679c\u554f\u984c\u6301\u7e8c\u5b58\u5728\uff0c\u8acb\u5617\u8a66\u91cd\u65b0\u555f\u52d5 IIS\u3001SQL \u548c Update Services \u670d\u52d9\u3002 <\/p>\n<p>WSUS \u7ba1\u7406\u4e3b\u63a7\u53f0\u767c\u751f\u672a\u9810\u671f\u7684\u932f\u8aa4\u3002\u9019\u53ef\u80fd\u662f\u66ab\u6642\u6027\u7684\u932f\u8aa4\uff0c\u8acb\u5617\u8a66\u91cd\u65b0\u555f\u52d5\u7ba1\u7406\u4e3b\u63a7\u53f0\u3002\u5982\u679c\u554f\u984c\u6301\u7e8c\u5b58\u5728\uff0c <\/p>\n<p>\u8acb\u5617\u8a66\u522a\u9664 %appdata%\\Microsoft\\MMC\\ \u4e0b\u7684 WSUS \u6a94\u6848\uff0c\u4ee5\u79fb\u9664\u4e3b\u63a7\u53f0\u7684\u6301\u7e8c\u6027\u559c\u597d\u8a2d\u5b9a\u3002 <\/p>\n<p>System.IO.IOException &#8212; \u7531\u65bc\u672a\u9810\u671f\u7684\u5c01\u5305\u683c\u5f0f\uff0c\u9020\u6210\u4fe1\u865f\u4ea4\u63db\u5931\u6557\u3002 <\/p>\n<p>Source   <br \/>System <\/p>\n<p>Stack Trace:   <br \/>&#160;&#160; \u65bc System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)    <br \/>&#160;&#160; \u65bc System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)    <br \/>&#160;&#160; \u65bc System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)    <br \/>&#160;&#160; \u65bc System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)    <br \/>&#160;&#160; \u65bc System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)    <br \/>&#160;&#160; \u65bc System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)    <br \/>&#160;&#160; \u65bc System.Net.TlsStream.CallProcessAuthentication(Object state)    <br \/>&#160;&#160; \u65bc System.Threading.ExecutionContext.runTryCode(Object userData)    <br \/>&#160;&#160; \u65bc System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)    <br \/>&#160;&#160; \u65bc System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)    <br \/>&#160;&#160; \u65bc System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)    <br \/>&#160;&#160; \u65bc System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)    <br \/>&#160;&#160; \u65bc System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)    <br \/>&#160;&#160; \u65bc System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)    <br \/>&#160;&#160; \u65bc System.Net.ConnectStream.WriteHeaders(Boolean async)    <br \/>** this exception was nested inside of the following exception ** <\/p>\n<p>System.Net.WebException &#8212; \u57fa\u790e\u9023\u63a5\u5df2\u95dc\u9589: \u50b3\u9001\u6642\u767c\u751f\u672a\u9810\u671f\u7684\u932f\u8aa4\u3002 <\/p>\n<p>Source   <br \/>Microsoft.UpdateServices.Administration <\/p>\n<p>Stack Trace:   <br \/>&#160;&#160; \u65bc Microsoft.UpdateServices.Administration.AdminProxy.CreateUpdateServer(Object[] args)    <br \/>&#160;&#160; \u65bc Microsoft.UpdateServices.Administration.AdminProxy.GetUpdateServer(String serverName, Boolean useSecureConnection, Int32 portNumber)    <br \/>&#160;&#160; \u65bc Microsoft.UpdateServices.UI.AdminApiAccess.AdminApiTools.GetUpdateServer(String serverName, Boolean useSecureConnection, Int32 portNumber)    <br \/>&#160;&#160; \u65bc Microsoft.UpdateServices.UI.SnapIn.Scope.ServerSummaryScopeNode.GetUpdateServer(PersistedServerSettings settings)    <br \/>&#160;&#160; \u65bc Microsoft.UpdateServices.UI.SnapIn.Scope.ServerSummaryScopeNode.ConnectToServer()    <br \/>&#160;&#160; \u65bc Microsoft.UpdateServices.UI.SnapIn.Scope.ServerSummaryScopeNode.get_ServerTools()<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5ffd\u7136WSUS Server\u7121\u6cd5\u9023\u7dda\u4e3b\u63a7\u53f0\uff0c\u670d\u52d9\u78ba\u5b9a\u90fd\u6b63\u5e38\uff0c\u4e14\u66f4\u65b0\u90fd\u6709\u5728\u904b\u4f5c\uff0c\u5230IIS\u7ad9\u53f0\u770b\u4e00\u4e0b\uff0c\u767c\u73feWSUS WEB\u4e0b\u6c92\u6709iisstart.htm\u4e3b\u9801\u6a94\u3002<\/p>\n<p>\u89e3\u6c7a\u65b9\u5f0f\uff0c\u522a\u9664 %appdata%\\Microsoft\\MMC\\ \u4e0b\u7684 WSUS \u6a94\u6848\uff0c\u79fb\u9664WSUS(\u8cc7\u6599\u5eab\u7b49\u4e09\u9805\u90fd\u7559\u4e0b)\uff0c\u91cd\u65b0\u5b89\u88ddWSUS\uff0c\u8b93IIS\u7684\u7db2\u9801\u8cc7\u6599\u91cd\u65b0\u8b93\u7cfb\u7d71\u88dd\u4e00\u6b21\uff0c\u78ba\u8a8dIIS\u7684\u7ad9\u53f0\u6709\u555f\u7528\uff0c\u5e95\u4e0b\u6709\u4e3b\u9801\u6a94\uff0c\u958b\u555f\u4e3b\u63a7\u53f0\uff0c\u624b\u52d5\u5efa\u7acb\u9023\u7dda IP PORT 80(\u8996\u4f60\u7684IIS\u8a2d\u5b9a)\uff0c\u679c\u7136\u5c31\u53ef\u4ee5\u6b63\u5e38\u9023\u7dda\u4e3b\u63a7\u53f0\u4e86\uff0c\u4e14\u4e4b\u524d\u7684\u8cc7\u6599\u90fd\u4fdd\u7559\uff0c\u4e0d\u7528\u91cd\u8a2d\u3002<\/p>\n<p>\u5370\u8c61\u4e2d\u4ee5\u524d\u4e5f\u767c\u751f\u904e\u4e00\u6b21\uff0c\u90a3\u6b21\u6211\u662f\u9023SERVER\u6574\u500b\u90fd\u91cd\u65b0\u5b89\u88dd\u4e00\u6b21\u2026\u2026\u2026\u2026\u2026\u5446\u963f~~<\/p>\n<p>====================================<\/p>\n<p>WSUS \u7ba1\u7406\u4e3b\u63a7\u53f0\u7121\u6cd5\u900f\u904e\u9060\u7aef API \u9023\u7dda\u5230 WSUS \u4f3a\u670d\u5668\u3002 <\/p>\n<p>\u8acb\u78ba\u8a8d Update Services \u670d\u52d9\u3001IIS \u548c SQL \u6b63\u5728\u6b64\u4f3a\u670d\u5668\u4e0a\u57f7\u884c\u3002\u5982\u679c\u554f\u984c\u6301\u7e8c\u5b58\u5728\uff0c\u8acb\u5617\u8a66\u91cd\u65b0\u555f\u52d5 IIS\u3001SQL \u548c Update Services \u670d\u52d9\u3002 <\/p>\n<p>WSUS \u7ba1\u7406\u4e3b\u63a7\u53f0\u767c\u751f\u672a\u9810\u671f\u7684\u932f\u8aa4\u3002\u9019\u53ef\u80fd\u662f\u66ab\u6642\u6027\u7684\u932f\u8aa4\uff0c\u8acb\u5617\u8a66\u91cd\u65b0\u555f\u52d5\u7ba1\u7406\u4e3b\u63a7\u53f0\u3002\u5982\u679c\u554f\u984c\u6301\u7e8c\u5b58\u5728\uff0c <\/p>\n<p>\u8acb\u5617\u8a66\u522a\u9664 %appdata%\\Microsoft\\MMC\\ \u4e0b\u7684 WSUS \u6a94\u6848\uff0c\u4ee5\u79fb\u9664\u4e3b\u63a7\u53f0\u7684\u6301\u7e8c\u6027\u559c\u597d\u8a2d\u5b9a\u3002 <\/p>\n<p>System.IO.IOException &#8212; \u7531\u65bc\u672a\u9810\u671f\u7684\u5c01\u5305\u683c\u5f0f\uff0c\u9020\u6210\u4fe1\u865f\u4ea4\u63db\u5931\u6557\u3002 <\/p>\n<p>Source   System <\/p>\n<p>Stack Trace:   &#160;&#160; \u65bc System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)   [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[32,40],"tags":[445],"_links":{"self":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/680"}],"collection":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=680"}],"version-history":[{"count":0,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/680\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=680"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}