Please be careful when editing the registry. Always take a backup
If you come across an issue where a temp profile loads when logging into a Vista or Windows 7 machine, delete the profiles associated to the user and try again.
1) Click Start
2) Click Run
3) Type regedit
4) Navigate to the following registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
5) Below ProfileList navigate to keys like:S-1-5-21-3656904587-1668747452-4095529-500
6) On the right side menu below ProfileImagePath you will see the username
7) Once you have located the profile you wish to delete, right click the long reg key as described in step 5 and delete