Create the MaxAttachWaitTimeInMillisecond registry key that adds sleep delays to address timing issues when virtual environments are closed and quickly restarted but the underlying volume is not available for enumeration.
Use the credentials of a local admin to create and set the following registry key:
Registry subkey: HKLM\SOFTWARE\Microsoft\AppV\MAV\Configuration
Registry key name: MaxAttachWaitTimeInMilliseconds
Registry Type: DWORD
Set the value to a nonzero will enable the fix. The default is zero, the maximum value is 10,000 (without commas set in the registry)
A MaxAttachWaitTimeInMilliseconds value of 1 is often sufficient to eliminate application startup failures. If applications continue to fail with the same start error, use increasingly larger value to increase the amount of time the driver sleeps between enumeration checks. You may also review verbose events in the Microsoft-AppV-Client\Debug log under the Log folder: Applications and ServicesLogs\Microsoft\AppV\ServiceLog\ to see how much sleep was used/needed then readjust MaxAttachWaitTimeInMilliseconds accordingly.
Note
Excessively large values for MaxAttachWaitTimeInMilliseconds may give the appearance of an application hang.