Saturday, March 28, 2009

Windows Guest Cannot Update hgfs.dat

Roaming Profiles issues with Windows Terminal Server/Citrix XenApp Server as a VM on VMware ESX Servers. See VMware knowledege base related article http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1317

The value hgfs gets installed when you enable VMware shared folders or when you re-install the VMware Tools.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order\
ProviderOrder= hgfs,CdmService,RDPNP,LanmanWorkstation,WebClient

I created a batch file and a registry file to change the changes.
The new value will be as follows:
ProviderOrder= CdmService,RDPNP,LanmanWorkstation,WebClient

OK so here is the batch file and the registry file to remedy this issue
Call the batch file something like hgfsremove.bat
regedit /s M:\hgfsremove.reg
The /s switch is optional. The /s switch means it will make the registry change silently without notification. This is not necessary in this case but I thought I would add it in anyway.

You can call the registry file something like hgfsremove.reg
REGEDIT4[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\NetworkProvider\Order]
"ProviderOrder"="CdmService,RDPNP,LanmanWorkstation,WebClient"

As you can see above the hgfs value gets delete from the ProviderOrder key. The registry file I provided will remove the hgfs from the key.

How to distribute these files to your WTS/XenAPP servers and how to run them? Well.. their is is many choices how to do this so I leave that up to you as long as it runs on each of your servers you will be in good shape. We copied the files and ran the process to all of the servers by using User Manager Pro http://www.liebsoft.com/User_Manager_Pro/. We rebooted the servers to cover the bases.

That's it problem fixed- enjoy!

No comments:

Post a Comment