2 minute read

Today I get a frantic call from a client who's experiencing a little bit of trouble with his laptop.

“When it all loads up, it’s not the same as normal, my Outlook icon is missing, I can’t get to my email and my favourites are gone from Internet Explorer.”

He’s using Windows 2000, so my immediate suspicion is that he’s logged on as another user by mistake, so, it should be nothing more than a 5 minute job right?

Wrong.

It turns out that since I set his laptop up on the router, Windows 2000 has decided it will create him a new profile in a new local profile directory under “C:\Documents and Settings\”, so now instead of “C:\Documents and Settings\User\”, it’s now “C:\Documents and Settings\User.Machine\”, and the original profile still exists, but is not being read.

So my initial though is this. Simple, what I’ll do is just delete the user, and recreate it using the original directory. How wrong I was…

What I originally tried was this (not recommended)… first make a new administrator user, restart (not just logoff/logon), then you need to delete the user, rename the directory, then add the user again. THIS DID NOT WORK. I just ended up with another “User.Machine” directory again, after another try and a rename of this and that, and a few reboots in between, I got it to use the original “User” directory as it should.

However I discover some of the settings have gone missing, such as passwords. Naturally, clients like this don’t remember their passwords or have them written down and stored in a safe place, and have no way of recovering them. Great. That’s no good!

I have since then learned how to corrected restore the user profile back to the original documents and settings folder…

  1. Get the Security ID (SID) of the user
    1. Download and install getsid.
    2. Go to Start -> Run, type CMD, press “OK”.
    3. CD to the directory you installed getsid to (ie: cd “C:\Program Files\Resource Kit\”).
    4. Type: getsid \MACHINE User \MACHINE User
      • Replace MACHINE with the computername and User with the username, and yes, you need it twice.
  2. Once you have that SID (the last 4 numbers in particular), you need to edit the registry.
    1. You need to run “regedit” (from Start -> Run).
    2. Find HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
    3. Find the one that has the same key as the SID, click on that.
    4. On the left you should have a value entitled “ProfileImagePath”, double click that.
    5. You should see something like “%SystemDrive%\Documents and Settings\User.Machine”, simply change this back to “%SystemDrive%\Documents and Settings\User”.

Problem solved!

Note: I’m not sure how useful this will be as nobody really uses Windows 2000 any more, and I couldn’t think up an appropriate title. Hope this helps someone.

Also see: Cannot move or rename the Documents and Settings folder

Updated:

Comments