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