How to disable SfrHook/SfrHook64 for all applications on a VDA

How to disable SfrHook/SfrHook64 for all applications on a VDA

book

Article ID: CTX324248

calendar_today

Updated On:

Description

To disable sfrhook.dll or sfrhook64.dll for all applications hosted on a VDA. This dll hook relates to special folder redirection and we do not normally recommend turning it off. However in some circumstances, for very specific scenarios, you may wish to disable these. 
 


Instructions

  1. Backup the registry key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\CtxHook\AppInit_Dlls\SfrHook
  2. Backup the registry key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Citrix\CtxHook\AppInit_Dlls\SfrHook
  3. Inside both the registry locations referenced above you will find a DWORD value called "flag"
  4. Set the data for this value to 0
  5. Reboot the VDA

Alternatively, hooks may be disabled completely on an image or individual VDA using the Citrix CAX tool https://support.citrix.com/article/CTX222592

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.

Additional Information

Citrix CAX tool https://support.citrix.com/article/CTX222592