App-V アプリケーションを起動できず、エラー 0xc0000225をログに記録する

適用先
Windows 10, version 1607, all editions Windows Server 2016, all editions Windows 10, version 1703, all editions Windows 10, version 1709, all editions Windows 10, version 1803, all editions Windows 10, version 1809, all editions Windows Server 2019, all editions

現象

App-V アプリケーションは、ログ フォルダーの下にある Microsoft-AppV-Client\Debug ログでエラー 0xc0000225を開始およびログに記録できません: Applications and ServicesLogs\Microsoft\AppV\ServiceLog。

解決策

仮想環境が閉じられ、迅速に再起動されたが、基になるボリュームが列挙に使用できない場合のタイミングの問題に対処するためにスリープ遅延を追加する MaxAttachWaitTimeInMillisecond レジストリ キーを作成します。

ローカル管理者の資格情報を使用して、次のレジストリ キーを作成して設定します。

レジストリ サブキー: HKLM\SOFTWARE\Microsoft\AppV\MAV\Configuration

レジストリ キー名: MaxAttachWaitTimeInMilliseconds

レジストリの種類: DWORD

値を 0 以外に設定すると、修正が有効になります。 既定値は 0、最大値は 10,000 です (レジストリにコンマを設定しない)

多くの場合、MaxAttachWaitTimeInMilliseconds 値 1 は、アプリケーションの起動エラーを排除するのに十分です。 アプリケーションが引き続き同じ開始エラーで失敗する場合は、値を増やして、列挙チェックの間にドライバーがスリープする時間を長くします。 Microsoft-AppV-Client\Debug ログ フォルダーの [Applications and ServicesLogs\Microsoft\AppV\ServiceLog\ ] で詳細なイベントを確認して、使用/必要なスリープの量を確認し、それに応じて MaxAttachWaitTimeInMilliseconds を再調整することもできます。

MaxAttachWaitTimeInMilliseconds の値が大きすぎると、アプリケーションがハングする可能性があります。

前提条件

MaxAttachWaitTimeInMilliseconds を使用するには、2019 年 3 月 19 日以降にリリースされた最新の累積的な更新プログラム (LCU) を次のようにインストールします。

  • Windows 10バージョン 1607 および Windows Server 2016 の場合は、KB4489889以上の LCU。
  • Windows 10 バージョン 1703 の場合は、KB4489888以上の LCU。
  • Windows 10 バージョン 1709 の場合は、KB4489890以上の LCU。
  • Windows 10バージョン 1803 のKB4489894以上の LCU。
  • Windows 10 Version 1809およびWindows Server 2019 の LCU KB4482887以上。