Win Server 2012 R2 WSUS 無法識別 Win Server 2016 & Win10的解決辦法

來源:互聯網
上載者:User

標籤:wsus   windows server 2016   win10   

各位好,今天給大家分享一個我遇到的問題。 相信微軟在推出了 Windows Server 2016和Win10 作業系統之後,有很多同學都第一時間進行了安裝和測試,想第一時間感受一下全新的系統平台帶來的新體驗。

但是不知道有沒有同學發現,如果我們在域環境中搭建了 Server 2016或者Win10的機器,域內的 WSUS 伺服器有可能是無法識別出來的,所以會直接導致補丁推送失敗,從而 Server2016和Win10的終端根本無法享受到Windows更新服務。

那麼怎麼辦呢? 今天我就來給大家說一下解決辦法,讓我們的“嘗鮮”之旅不在恐慌!

首先我們看一下現象。

我們以一台 Windows Server 2016為例,首先我們在嘗試通過WSUS更新服務的時候,發現系統能夠識別出需要更新的補丁,但是一直無法下載。

650) this.width=650;" alt="圖片" src="https://fud.community.services.support.microsoft.com/Fud/FileDownloadHandler.ashx?fid=32bf2607-1103-479e-bba2-3b9a29fc841d" />

或者說還有如下的可能行,就是直接提示更新遇到錯誤。

650) this.width=650;" alt="圖片" src="https://fud.community.services.support.microsoft.com/Fud/FileDownloadHandler.ashx?fid=89cc7a73-c134-477e-a8fd-9dd1dbd07020" />

這個時候我們第一時間會想到登上WSUS去一探究竟。

我們從中可以看到,我們安裝了 Windows Server 2016 的一台伺服器,居然被WSUS識別成了 Windows Server 2008 標準版(完整安裝) 的版本。

650) this.width=650;" height="446" title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px;" alt="image" src="http://s3.51cto.com/wyfs02/M02/8E/CF/wKioL1jLkF3wMnrrAAGtRpww_sc570.png" border="0" />

650) this.width=650;" alt="圖片" src="https://fud.community.services.support.microsoft.com/Fud/FileDownloadHandler.ashx?fid=6625e9f5-be96-4e19-8f37-43f6549882a3" />

這個就說的通了,為什麼我們的終端伺服器上遲遲未收到正確的補丁包。WSUS都認錯OS了,怎麼推送補丁呢?

那麼我們想要糾正WSUS的這個錯誤,需要怎麼做呢?

答案就是 安裝兩個補丁 即可

KB3095113

: https://support.microsoft.com/zh-cn/help/3095113/update-to-enable-wsus-support-for-windows-10-feature-upgrades

KB3159706

: https://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB3159706%20

 

下載完成這兩個補丁後,按照順序進行安裝

650) this.width=650;" height="132" title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px;" alt="image" src="http://s3.51cto.com/wyfs02/M02/8E/D1/wKiom1jLkF7jexdXAABY7TX2oj4074.png" border="0" />

第一個 KB3095113 補丁沒有什麼特別需要注意的,安裝後需要重啟。

但是第二個補丁 KB3159706 就有一些需要手動操作的地方了。

我們來看一看:

雙擊補丁安裝包

650) this.width=650;" height="382" title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px;" alt="image" src="http://s3.51cto.com/wyfs02/M01/8E/D1/wKiom1jLkF_A_ZSBAAD5sUpTBwM740.png" border="0" />

系統開始獨立安裝補丁

650) this.width=650;" height="402" title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px;" alt="image" src="http://s3.51cto.com/wyfs02/M02/8E/D1/wKiom1jLkF-hocJPAADc07sHStE964.png" border="0" />

安裝完成,需要重啟伺服器

650) this.width=650;" height="398" title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px;" alt="image" src="http://s3.51cto.com/wyfs02/M00/8E/D1/wKiom1jLkGCw-cnhAACpjH4xEBQ733.png" border="0" />

等伺服器重啟完畢之後,開啟IIS,檢查您所使用的WSUS使用的是 http 還是 https 協議,通常我們使用的都是8530的 http協議。

為什麼要看這個呢? 因為不同的協議,接下來的手動操作辦法是不同的。

650) this.width=650;" height="497" title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px;" alt="image" src="http://s3.51cto.com/wyfs02/M00/8E/CF/wKioL1jLkGPg_V7rAAPHQSAakdI413.png" border="0" />

先說第一種,如果是 8530的 http協議,OK 那麼恭喜你,你的步驟會很簡單。

  1. 首先開啟cmd命令列

輸入下面的命令 (路徑大家酌情修改)

"C:\Program Files\Update Services\Tools\wsusutil.exe" postinstall /servicing

當看到如下字樣,說明部署完成。

650) this.width=650;" height="224" title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px;" alt="image" src="http://s3.51cto.com/wyfs02/M00/8E/CF/wKioL1jLkGSj0STiAAC8x-nAUEM332.png" border="0" />

  2. 接下來 在伺服器管理員添加角色和功能嚮導選擇.NET Framework 4.5 功能下, HTTP 啟用

650) this.width=650;" height="468" title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px;" alt="image" src="http://s3.51cto.com/wyfs02/M01/8E/CF/wKioL1jLkGWAByaUAAHE7Sm9EPs816.png" border="0" />

  3. 安裝完成後,重啟WSUS服務。

 

下面介紹第二種 啟用了 8531 https 協議的同學們,你們的處理辦法稍微麻煩一點。

 

  1. 將 Web.Config 檔案的所有權分配給Administrator 群組 (在提升權限的命令提示字元下運行)︰    

    takeown /f web.config /aicacls "C:\Program Files\Update Services\WebServices\ClientWebService\Web.config" /grant administrators:f

     

  2. 找到的 Web.Config 檔案中的以下路徑︰

    C:\Program Files\Update Services\WebServices\ClientWebService\Web.Config

  3. 在檔案中進行以下更改。
    注意:此程式碼範例表示一個文字區塊。行間距僅用於強調文本更改,以粗體顯示。

    <services>          <service                name="Microsoft.UpdateServices.Internal.Client"                behaviorConfiguration="ClientWebServiceBehaviour">
                   <!--                   These 4 endpoint bindings are required for supporting both http and https                -->                <endpoint address=""                        binding="basicHttpBinding"                        bindingConfiguration="SSL"                        contract="Microsoft.UpdateServices.Internal.IClientWebService" />                <endpoint address="secured"                        binding="basicHttpBinding"                        bindingConfiguration="SSL"                        contract="Microsoft.UpdateServices.Internal.IClientWebService" />
                   <endpoint address=""                        binding="basicHttpBinding"                        bindingConfiguration="ClientWebServiceBinding"                        contract="Microsoft.UpdateServices.Internal.IClientWebService" />                <endpoint address="secured"                        binding="basicHttpBinding"                         bindingConfiguration="ClientWebServiceBinding"                        contract="Microsoft.UpdateServices.Internal.IClientWebService" />          </service>    </services>

     

  4. 添加multipleSiteBindingsEnabled ="true"特性到底部的 Web.Config 檔案中,如下所示︰

    </bindings> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> </system.serviceModel>

     

 

按照上述的兩種方法進行了操作之後,我們再開啟WSUS管理主控台。

之前的伺服器已經被識別為 Windows (version 10.0)了,這裡大家不要覺得奇怪,因為 server 2016和 Win10 都是相同的架構平台,所以這裡的顯示是相同的。

650) this.width=650;" height="340" title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px;" alt="image" src="http://s3.51cto.com/wyfs02/M01/8E/CF/wKioL1jLkGbz0iU9AAKv0JRzlhE520.png" border="0" />

哈哈,補丁成功推送過來了,安裝成功!

650) this.width=650;" height="497" title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px;" alt="image" src="http://s3.51cto.com/wyfs02/M02/8E/CF/wKioL1jLkGjgqT5UAAEnj6bdwCM122.png" border="0" />

搞定!

Win Server 2012 R2 WSUS 無法識別 Win Server 2016 & Win10的解決辦法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.