Citrix - Random Loss of File Explorer "Quick Access" Pins in Windows Server 2022 VDAs with Citrix Profile Management

book

Article ID: CTX696870

calendar_today

Updated On:

Description

Symptom

In a multi-session Windows Server 2022 Delivery Group, users intermittently lose custom Quick Access pins upon session launch. Inspection of the user profile store reveals that the file responsible for storing Quick Access items (f01b4d95cf55d32a.automaticDestinations-ms):

\\almperfilesideo\perfilesideo$\USER.upm\Win2022v6\UPM_Profile\AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations\f01b4d95cf55d32a.automaticDestinations-ms

...is either not pulled from the network store during logon or is overwritten by a newly generated, zero-byte/default file by the VDA shell upon launch.

Cause

 
  1. File Locking during Logoff (SMB Timeout): When a user logs off a Server 2022 VDA, shell32.dll or SearchHost.exe holds an active file handle on AutomaticDestinations items. If the VDA shuts down or the user logs off before CPM releases the SMB lock, the file on the network share becomes marked as corrupt or locked.

  2. Missing Folder Synchronization Directives: By default, subdirectories under AppData\Roaming\Microsoft\Windows\Recent\ are treated as temporary system caches by UPM and may be excluded or improperly handled as basic file streams rather than explicit sync directories.

  3. Corrupt File Replacement Behavior: When explorer.exe initializes during logon, it attempts to read f01b4d95cf55d32a.automaticDestinations-ms. If CPM delay-loads this file or if the file payload is corrupt, Windows automatically deletes the existing file and instantiates a clean, empty default file—wiping user customization and file access permissions.

Resolution

Step-by-Step Resolution Instructions


Step A: Explicitly Include AutomaticDestinations in Profile Management Policies

  1. Ensure Citrix Profile Management explicitly syncs the Recent and AutomaticDestinations folders as full directory structures rather than relying on default exclusions.
  2. Open Citrix Studio or Group Policy Management Editor (GPMC) targeting your VDA Organizational Unit (OU).Navigate to: Computer Configuration > Policies > Administrative Templates > Citrix Components > Profile Management > File system > Synchronization.
  3. Edit Directories to synchronize and add:

AppData\Roaming\Microsoft\Windows\Recent

AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations

AppData\Roaming\Microsoft\Windows\Recent\CustomDestinations

4.Under Files to synchronize, add: AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations*.*

 

Step B: Enable Delayed Logon Lock Check (Fix File Lock Collisions)

 

To prevent CPM from dropping files that are still processing lock releases from previous server sessions:

  1. In the same GPO path, navigate to Profile Management > Advanced settings.
  2. Enable Process corrupt profiles and set it to Log on user with local profile and delete on logoff (or back up corrupt profiles).
  3. Enable Number of retries when accessing locked files and set the value to 5.
  4. Enable Delay before retrying access to locked files (ms) and set the value to 2000.

Step C: Exclude AutomaticDestinations from Profile Container Exclusions (If Using VHD Containers)

If using CPM Profile Containers or FSLogix alongside file-based roaming:

  1. Ensure AppData\Roaming\Microsoft\Windows\Recent\ is not included in any profile container redirection/exclusion XML files (e.g., Redirections.xml). Redirection of shell destination folders across network shares breaks Windows 11 / Server 2022 UWP storage drivers.

Step D: Implement a Logoff Cleanup Script on Master Image
To ensure explorer.exe cleanly releases its lock on f01b4d95cf55d32a.automaticDestinations-ms prior to CPM profile upload:

  1. On the Master Image, open Group Policy (gpedit.msc).
  2. Navigate to User Configuration > Windows Settings > Scripts (Logon/Logoff) > Logoff.
  3. Add a lightweight PowerShell cleanup directive to flush shell handles:

PowerShell command to  #Kill hanging shell host processes before UPM syncs AppData\Roaming

Get-Process -Name "SearchHost", "StartMenuExperienceHost" -ErrorAction SilentlyContinue | Stop-Process -Force

 

 


3. Verification & Validation

  1. Apply the updated GPO policies and update the Server 2022 Machine Catalog if Master Image changes were made.
  2. Have an affected user log in, pin 3–4 items to Quick Access, and log off cleanly.
  3. Check the central network profile store (\almperfilesideo\perfilesideo$...) and confirm that f01b4d95cf55d32a.automaticDestinations-ms updates its timestamp without generating .tmp or lock files.
  4. Have the user log into a different Server 2022 VDA host in the same Delivery Group.
  5. Open File Explorer — all pinned Quick Access items will persist cleanly across sessions.

Issue/Introduction

Users randomly lose their pinned File Explorer Quick Access items in non-persistent Windows Server 2022 session environments. This occurs because Citrix Profile Management (CPM) fails to sync or unlock the f01b4d95cf55d32a.automaticDestinations-ms file during logon—often due to network file lock timeouts, missing UPM folder inclusion directives, or file corruption—causing Windows to overwrite the profile store with a default blank file