Server 2019: File Explorer data is not refreshed in published app

Server 2019: File Explorer data is not refreshed in published app

book

Article ID: CTX263595

calendar_today

Updated On:

Description

When accessing File Explorer.exe within an app or accessing it as a published app it does not refresh properly when you create a new folder, rename, delete etc.

You have to manually refresh for it to update

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Resolution

This issue is addressed by the new Shellbridge feature. To enable Shellbridge:

  1. Install Citrix VDA version 2206*.
  2. Add the following registry details:
HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\Citrix Virtual Desktop Agent
Name: Shellbridge
Type: REG_DWORD
Value: 1
  1. Install the required updates for Microsoft Shellbridge feature as follows:
OSBugReleaseRelease DateKB
 Windows 11386501765c.2205/24/2022KB5014019
 Server 2022381346855c.2205/24/2022KB5014021
 Windows 10381346805c.2205/24/2022KB5014023
 Server 2019381346705c.2205/24/2022KB5014022

Note:  Does not apply to Windows Server 2016. 

* You can check if LCM-7673 is listed in "Fixed Issues" when version 2203 CU1 is released.  This version is planned to contain the Shellbridge feature.

Workarounds if you are unable to upgrade to a release of VDA that supports Shellbridge: 

Create this Registry Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\EXPLORER.EXE
DWORD:  DontUseDesktopChangeRouter
Value:  1
If the above registry key does not help, here is a different registry setting that may help: 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI
DWORD   SeamlessFlags
Value    2000 (Hexadecimal)

Problem Cause

Issue is related to Server 2019 OS limitation. 
Citrix has identified the compatibility issue with customshellhost. A change in Windows 2019 internal implementation does not have the same shell APIs that are in previous versions of Windows Server.

Previously fixed for Server 2016:
https://support.microsoft.com/en-us/help/4025334/windows-10-update-kb4025334

“Addressed issue where File Explorer does not refresh changes automatically when using RemoteApps on Windows Server 2016.”

Additional Information

https://docs.microsoft.com/en-us/windows/win32/shell/app-registration