症狀
App-V 應用程式無法在 Microsoft-AppV-Client\Debug log 資料夾的 Log 資料夾 Applications and ServicesLogs\Microsoft\AppV\ServiceLog 下啟動並記錄錯誤0xc0000225。
解決方式
建立 MaxAttachWaitTimeInMillisecond 登錄檔金鑰,該鍵可加入睡眠延遲,以解決虛擬環境關閉並快速重啟但底層卷無法枚舉時的時序問題。
使用本地管理員的憑證建立並設定以下登錄檔金鑰:
登錄檔子鍵: HKLM\SOFTWARE\Microsoft\AppV\MAV\Configuration
登錄檔鍵名稱:MaxAttachWaitTimeInMilliseconds
登錄類型:DWORD
將值設為非零即可啟用修正。 預設值為零,登錄檔中最大值為 10,000 ((不含逗號)
MaxAttachWaitTimeInMilliseconds 的值通常足以消除應用程式啟動失敗。 若應用程式持續失敗且出現相同的啟動錯誤,則使用越來越大的值來增加驅動程式在列舉檢查間的休眠時間。 您也可以在 Microsoft-AppV-Client\Debug 日誌中的 Log 資料夾 Applications and ServicesLogs\Microsoft\AppV\ServiceLog\ 中查看冗長事件,查看使用或需要多少睡眠,然後相應調整 MaxAttachWaitTimeInMilliseconds。
注意
MaxAttachWaitTimeInMilliseconds 過大值可能會讓人誤以為應用程式當機。
先決條件
要使用 MaxAttachWaitTimeInMilliseconds,請安裝 2019 年 3 月 19 日或之後發布 (LCU) 的最新累積更新,例如:
- Windows 10 KB4489889 或更高 LCU,版本 1607 及 Windows Server 2016。
- Windows 10 KB4489888 或更高 LCU,版本 1703。
- Windows 10 KB4489890 或更高 LCU,版本 1709。
- Windows 10 的 KB4489894 或更高 LCU,版本為 1803。
- 2019 年Windows 10 版本 1809及 Windows Server LCU 等級為 KB4482887 或以上。