Unable to delete cached copy of profile on Windows TS due to hgfs.dat or vmhgs.dat

When logging off from a terminal server in a virtual machine the local profile cannot be deleted due to a file called “hgfs.dat” which is still in use.

If you also have the VMware shared folders feature enabled in the virtual machine, TS tries to copy the file hgfs.dat back to the roaming profile server.
Read More

HOWTO: Install Citrix XenServer 5.5 on VMware Workstation 7