We have an issue where a user's account was deleted and then another account was created with the same username. On Windows XP, the profile for this user was created in the folder "user.DOMAIN" whereas the original user's profile is at "user." How can we redirect this user's profile back to the "user" folder? We tried to change the ProfileImagePath registry key and what ended up happening was XP created a third profile at location"user.DOMAIN.000"
You'll need to assign the user full access permissions recursively to the old profile folder. You'll also need to do the same for the registry hive (NTUSER.DAT) in the old profile. Then you'll need to edit the ProfileImagePath key as you've previously noted.
To assign permissions to the profile folder:
To assign permissions to the registry hive:
To modify the ProfileImagePath registry entry:
Restart the computer. (You may be able to simply log out, but if the registry hives do not unload correctly, the next step may fail.)
Log in as the user, and you should get the user's profile back.
NOTE: Certain saved passwords will be lost, because Windows XP provides a method for saving passwords in an encrypted format that uses the user SID and password as part of the encryption algorithm.
Note also that if the user was previously applied to ACLs on network resources, you may need to modify those ACLs to reflect the user's new SID.
Look into using USMT, as this will let you pull the profile of one user and restore as another. A deleted user will lose all of the SID information within the registry hive.
Another good idea is to disable users and place them in an OU, rather than delete them.