I just had a few hours of cold-sweat experience with my Windows 7 installation;

I had to remove my machine from the domain and reinsert it into a new domain with the same name.  This ought to be straight forward, it however proved to be a nightmare 😐  No matter what I did the above error was presented to me again and again “You have been logged on with a temporary profile” even after deleting the profile under c:\users\<profilename> the error kept coming.

Well a bit of googling came up with the solution (intended for Vista but works for Win7 also);


To resolve this problem, follow these steps:

  1. Log on to the system by using an administrative user account other than the user account that is experiencing the problem.
  2. Back up all data in the current user’s profile folder if the profile folder still exists, and then delete the profile folder. By default, the profile resides in the following location:
  3. Click Start, type regedit in the Start Search box, and then press ENTER.
    Collapse this imageExpand this image

    User Account Control permission

    If you are prompted for an administrator password or for confirmation, type your password, or click Continue.

  4. Locate the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  5. Under the ProfileList subkey, delete the subkey that is named SID.bak.

    Note SID is a placeholder for the security identifier (SID) of the user account that is experiencing the problem. The SID.bak subkey should contain a ProfileImagePath registry entry that points to the original profile folder of the user account that is experiencing the problem.

  6. Exit Registry Editor.
  7. Log off the system.
  8. Log on to the system again.

After you log on to the system, the profile folder is re-created. 


After this I could login without a temporary profile..