Windows Live Alerts
Start access
Support Forum
Remote Desktop Services
Terminal Services
Web Interface
Tips & Tools
Lassen Sie sich von einem Experten Beraten

Profile handling Print E-mail

With users roaming from one server to another a lot of bad things can happen and it can take some time to find out whats going on.

FAQThe file hgfs.dat can not be deleted on VMware Machines?
FAQThe folder hsperfdata is not deleted from the Profile?
FAQI have a SP4 Profile Acces Problem!
FAQI have registry unload problem with profiles
FAQHow can I automaticly delete roaming profiles?
FAQHow can I use OS dependent Profiles?

Questions and Answers
ok, go up!
The file hgfs.dat can not be deleted on VMware Machines?

The file hgfs.dat comes from VMware shared folder feature. The files is created in the profile of the first user that logs on. The file handle is kept open and therefore you might get more profile folders for the same user.

Two options to handle that problem:

  • Try the UPHClean 2.x Beta that you can get here
  • See VMware FAQ1317 how to disable the shared folder feature.

ok, go up!
The folder hsperfdata is not deleted from the Profile?

The folder hsperfdata comes from SUN Java and they say it's by design that the folder has some bad permission set. See SUN's Bug ID 5042659 for more details.

There are two options to overcome that issue:

  • Try the UPHClean 2.x Beta that you can get here
  • Use a logoff script to rest the folder permissions using cacls.exe

ok, go up!
I have a SP4 Profile Acces Problem!

This problem can occur when you are using Windows 2000 Service Pack 4 and store your Roaming Profiles on a NONE Windows 2000/2003 file Server. 
You might get userenv events 1000 and messages like:

"Windows cannot log you on because the profile cannot be loaded. Contact your network administrator.
DETAIL - Access is denied."

set GPO "Do not check for user Ownership of Roaming Profile Folders"
set the following registry key


also possible at



  • Windows Server 2003 Checks for Pre-Created Roaming Profile Folders When You Make a Roaming User Profile
  • Windows XP SP1 and Windows 2000 SP4 Check for Existing Roaming User Profile Folders When a Roaming User Profile Is Created

ok, go up!
I have registry unload problem with profiles

Robin Caron from Microsoft has made a great utility (UPHClean) that work's as an windows service to get rid of the problem that the user profile can't be unloaded, like event ID 1000, Windows cannot unload your registry file... DETAIL - Access is denied.

UPHClean 1.6d.

For 1.6 code was added to prevent UPHClean from closing handles held to user profile hives. This can be done using by user or process restriction. Added code to allow remapping of handles. This must be enabled by indicating which process
remapping should be done for.

Corrected problem when on Windows 2000 if UPHClean had trouble closing handles
to user profile hive logoff times could increase to about 15 minutes.

Corrected problem when stopping the UPHClean service while a user profile was
being unloaded which could cause the machine to crash.

Corrected code to log UPHClean stop event (event id 1010) when system is

V1.5x detects the stuck profile condition differently allowing the almost complete elimination of userenv 1517/1524 events on Windows XP and 2003
(or with the userenv 1000 information message with the retry count on Windows 2000).

The service work's with Windows NT, Windows 2000 (service pack 2-4) and Windows 2003 (any service pack) in every language and is very easy to install.
For detailed information about the "User Profile Hive Cleanup"
 utility please read the uphclean.txt

***  This is a must have utility!!! 
I Highly Recommend it!!   *** 

Download UPHClean NOW UPHClean-Setup.msi


  • Use FlexProfileKit to have much less problems with Profiles.
    Highly Recommended!
  • Policies and Profiles Standards
  • HGFS.dat issue when using roaming profiles with Vmware Server

ok, go up!
How can I automaticly delete roaming profiles?

Set the following registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon


  • How to Automatically Delete Locally Cached Profiles
  • Using Group Policy to Delete Cached Copies of Roaming Profiles

ok, go up!
How can I use OS dependent Profiles?

You have to set a Environment Variable on every server, for instance osver=_NT and osver=_W2K (you have to reboot the server). Next in the User Manager set as TS Profile path


On the FileServer you have to create two folder for the user: UserName_NT and UserName_W2K


  • Implementing the %SERVERNAME% Environment Variable In Profiles
  • Lock down a desktop by setting up multiple mandatory profiles in a terminal server and MetaFrame environment

Last Updated ( Wednesday, 22 February 2006 )

find or follow me @