Correct Documents and Settings folder on Windows 2000
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…
- 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”.
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
Warning: Declaration of Social_Walker_Comment::start_lvl(&$output, $depth, $args) should be compatible with Walker_Comment::start_lvl(&$output, $depth = 0, $args = Array) in /Users/wade/Sites/hm2k.org/wp-content/plugins/social/lib/social/walker/comment.php on line 18
Warning: Declaration of Social_Walker_Comment::end_lvl(&$output, $depth, $args) should be compatible with Walker_Comment::end_lvl(&$output, $depth = 0, $args = Array) in /Users/wade/Sites/hm2k.org/wp-content/plugins/social/lib/social/walker/comment.php on line 42
My mom still uses 2000 (she never saw a need to upgrade since it does what she wants). She just ran into the problem, and you helped me out a lot. Thanks!
Thanks dude it worked like a charm, helped me get back to my “User” account.
Even now i couldn’t understand what got me there to “User.Machinename” account.
Thanks for your valuable help. I think you’ll find that many people still use 2000 as it was a lot more stable (and secure) than XP when that came out, and I think Microsoft recognise this by continuing to provide windows update security patches for 2000 to this day. Great Help topic you wrote there, Thanks.
Thanks alot for the information the same thing just happened on my colleauges Win2k-machine. Apparently during an Update of Windows .Net Framework Components. Furthermore Outlook decided to move his mailbox to the new local folder…but didn’t manage to finish it. So all his files are lost. (makes me appreciate working under Linux even more).
Thanks that worked great. I have no idea why this suddenly happened in the first place though.
I still have a Windows 2000 system that decided to do this as well. The difference was that instead of MACHINENAME, it tagged DOMAINNAME to the end of my username for the “new” Documents and Settings profile directory (it is a domain bound box).
The same registry trick resolved the problem. Thanks much!!!
Hint: if you cannot install getsid, just search the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList for the bad (“new”) profile directory name, and change the “ProfileImagePath” accordingly.
Thanks, worked great.
Hi, thank you for writing your experience up as it helped me no end. (Some of us still use w2k 🙂
I have several Linux distribs on different partitions on a SATA drive and a PATA – with the orig Win installations on it.
Recently when installing a new os , Grub appears to have changed the assignment of hd0 and hd1 around . I did a rough and ready reassignment with the active menu.lst and the Linux oses were accessible again, as was W2k.
However I soon had complaints from family that the desktop had changed in Win. Outlook express was wanting to do a fresh install and the icons had reduced to just a few.
This evidence was enough to think doing something silly and reinstalling but the solution was elegant, although I took some time to research it on inet.
I found a good item on Outlook Express and your article. The upshot was that Outlook had multiple files managed as part of an OE identity.
However this identity was created for the users W2k profile.
Since both icon and OE setting had gone, it was likely to be a profile issue.
Using GETSID, I found ProfileList in the registry and adjacent to the key – which ended xxxxx001 was another almost identical one ending xxxxx001.bak
After making some preparations against disaster ( incanting ” Bugger, this had better work..” repeatedly), I renamed the active one as something else, then the .bak was removed from the second (and then placed on the first over the temp extension to be doggedly conservative).
On restarting the computer and w2k all was well with the lost profile restored and with Outlook Express restored as part of that.
So thanks again for providing the process to get the info needed to simply undo a little W2k knot. ( I still do not know how the glitch with grub affected W2k although it is the only change that I am aware of )
cheers
bob
Article referred to above:
http://techrepublic.com.com/5208-6346-0.html?forumID=80&threadID=120681&messageID=3196151
cheers