Windows 10封裝中出現“無法驗證你的Windows安裝”錯誤解決方案

來源:互聯網
上載者:User

標籤:windows 10   sysprep   封裝   


   近期(當時寫文章時在今年4月份)在測試在Windows Server 2016 的虛擬桌面,在測試Windows 7的虛擬桌面時一切良好,但在測試Windows 10的虛擬桌面時,在對Windows 10的虛擬機器進行封裝時,出現"Sysprep無法驗證你的Windows 安裝"的錯誤提示,1-1所示。

650) this.width=650;" src="http://s3.51cto.com/oss/201710/24/c4e9b5160c7d5c82c61ff48fd1ef9be3.png" />

圖1-1 sysprep封裝失敗

在開啟c:\windows\system32\sysprep\panther檔案夾中的setupact.log檔案查看時,有如下幾行錯誤資訊(部分):

SYSPRP Failed to remove apps for the current user: 0x80073cf2.

SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘SysprepGeneralizeValidate‘ from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2

SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2

SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2

在網上搜尋資料發現這種情況是普遍現象,基本上每個封裝Windows 10的系統都會碰到。解決方案是將"Windows Media Player Networking Sharing Service"服務停用,但在Windows 10這個服務預設是"手動"狀態,沒有啟用。

開始的時候我使用的是最新的Windows 10版本(版本1703),我以為是版本的問題,但嘗試安裝了1607、1511仍然報這個錯誤。我在MVP群詢問,有MVP告訴我這個Bug一直存在。

之後進行測試,由於在安裝Windows 10第一次登入的時候,使用的是一個新建立的帳戶,例如我當前實驗的機器建立的使用者名稱是linnan,我估計可能是這個帳戶許可權不夠。在系統中啟用Administrator帳戶,換用Administrator登入,仍然出現同樣的錯誤。之後再看日誌,無果。但我感覺可能是"市集"造成的。我嘗試刪除了Administrator以外的其他帳戶,再次執行sysprep進行封裝,成功!之後分別在Hyper-V、VMware Workstation建立新的虛擬機器,安裝不同版本的Windows 10進行測試,同樣成功。

用一句話來概括:在Windows 10中進行系統封裝時,啟用並使用Administrator帳戶登入,並刪除Administrator以外的其他帳戶即可。下面我們介紹一下主要步驟。

(1)在Windows 10中,開啟"電腦管理→本機使用者和組→使用者",雙擊Administrator開啟"屬性"對話方塊,取消"帳戶己禁用"的選項,1-2所示。

650) this.width=650;" src="http://s3.51cto.com/oss/201710/24/97cf7e85c75cafa37bca4091ef09c8c4.png" />

圖1-2 啟用Administrator帳戶

(2)登出目前使用者,以Administrator登入,1-3所示。

650) this.width=650;" title="11.png" src="https://s3.51cto.com/oss/201710/24/f89ef8b568df362b1848514ee9195f2b.png-wh_500x0-wm_3-wmp_4-s_4224947727.png" alt="f89ef8b568df362b1848514ee9195f2b.png-wh_" />

圖1-3 換用Administrator登入

(3)開啟"所有設定→帳戶→其他使用者",可以看到當前共有2個帳戶分別是linnan和ln,在確認已經備份了這兩個帳戶的資料後(實際上這就是安裝完系統之後建立的使用者,不會有資料,一般只有一個使用者),選中一個使用者,單擊"刪除"按鈕,1-4所示。

650) this.width=650;" title="12.png" src="https://s2.51cto.com/oss/201710/24/d8cf9e1f5b33f49af8f7b630a54831cd.png-wh_500x0-wm_3-wmp_4-s_619766188.png" alt="d8cf9e1f5b33f49af8f7b630a54831cd.png-wh_" />

圖1-4 刪除帳戶

(4)在彈出的"要刪除帳戶和資料嗎"對話方塊中單擊"刪除帳戶和資料"按鈕,1-5所示。

650) this.width=650;" src="http://s3.51cto.com/oss/201710/24/99053f9a929937b3f6c3976b3d5e67e2.png" />

圖1-5 刪除帳戶和資料

(5)之後將其他帳戶及資料一同刪除,刪除之後在"其他使用者"中沒有使用者,1-6所示。

650) this.width=650;" title="13.png" src="https://s4.51cto.com/oss/201710/24/36d36045554e89a6d64e4020e732d434.png" alt="36d36045554e89a6d64e4020e732d434.png" />

圖1-6 刪除所有其他使用者

(6)以管理員身份進入命令提示視窗,進入c:\windows\system32\sysprep檔案夾,執行sysprep /generalize /shutdown,在"系統準備工具3.14"對話方塊單擊"確定"按鈕,1-7所示。

650) this.width=650;" title="14.png" src="https://s1.51cto.com/oss/201710/24/969ce8a585a6ef6fa326d6118f6b2c4c.png-wh_500x0-wm_3-wmp_4-s_2870439050.png" alt="969ce8a585a6ef6fa326d6118f6b2c4c.png-wh_" />

圖1-7 確認執行系統封裝

(7)之後sysprep將開始執行,1-8所示。

650) this.width=650;" title="15.png" src="https://s5.51cto.com/oss/201710/24/49dc9bb74527bec9733f529a0e331c75.png-wh_500x0-wm_3-wmp_4-s_2033222652.png" alt="49dc9bb74527bec9733f529a0e331c75.png-wh_" />

圖1-8 sysprep開始執行

(8)執行完成之後,虛擬機器關閉,1-9所示。之後可以用這個虛擬機器作為模板,用以建立Windows 10虛擬桌面,這些不一一介紹。

650) this.width=650;" src="http://s3.51cto.com/oss/201710/24/84597c22bc6fb745404d98b72bab7cf6.png" />

圖1-9 封裝完成關機

(9)其中圖1-10是在Windows Server 2016中發布的Windows 10虛擬桌面,使用Heaven Benchmark 4.0進行測試的。

650) this.width=650;" src="http://s3.51cto.com/oss/201710/24/da99f44952fb0adc43abddf6a14fbc24.png" />

圖1-10 GPU測試

【說明】本文發表在《網路營運與管理》第10期上,發表時略有刪減。

本文出自 “王春海的部落格” 部落格,謝絕轉載!

Windows 10封裝中出現“無法驗證你的Windows安裝”錯誤解決方案

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.