Showing posts with label regedit. Show all posts
Showing posts with label regedit. Show all posts

Friday, 9 September 2011

Windows 7 - Lost desktop icons, User files, Documents, Settings - Corrupt User Profile

I was recently asked to fix a laptop that seemed to have a corrupt User Profile on Windows 7. For no apparent reason, the user booted up his laptop one day, entered his password as normal only to see a "Preparing Desktop" message appear (like you get before logging onto Windows for the first time on a new User Account) before loading up his desktop, minus his custom shortcuts, desktop files, and everything under his user area seemingly disappeared. Various application shortcuts didn't work and in general it looked like it was a brand new User Account desktop...except it wasn't.

Googling this issue came up with various suggestions and supposed fixes, some which had no effect on fixing this issue. The method below is how I fixed it, but check my checklist as not all logon problems are the same, so you may have a different problem to what I was presented with.

Symptoms I had were;

  • "Preparing Desktop" at logon, when logging onto a User Account thats been used before
  • Desktop looking standard - no custom icons, shortcuts or files stored on the desktop not visible
  • In the User area (C:Usersusername, used to be My Documents) - all folders are empty
  • Certain applications may have lost their configuration and appear to be loading as if they hadn't been run before.
At this point it's worth mentioning that this is no reason to panic - you're files etc are still on the PC, but your User Profile has become corrupt so they're not visible. Browsing to C:Usersusername will show you your files are still there, but going to the User Area from the Start Menu or Desktop will show it as empty. If you click into the Address Bar you'll notice the reason - it will show "C:Windowssystem32configsystemprofile" or something similar. Now you could copy all this files back over but it wouldn't fix the problem entirely, or you could create a new profile and copy the data back over to that.
However, it's quicker and makes more sense to follow the steps I carried out, which I will now explain - click images to enlarge in a new window.

First, we need to open the Registry Editor. Click "Start" and type "regedit".
Now we need to make a backup of the Registry. Do this by clicking "File" and then "Export" and choosing somewhere you'll remember to save it.
Now navigate to the following location in the Registry;
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrent VersionProfileList
Look for the key starting S-1-5 with a long number followed by it. Click it and you'll see in the right-pane that the "ProfileImagePath" is set to "C:UsersTEMP" - this is part of the problem, it should be related to the user, in my particular case it should be "C:Usersmartin".



In the left-pane there should be an indentical key under "ProfileList" but with ".bak" at the end of it.


 
If you click this, in the right-pane you'll see the "ProfileImagePath" is correct, and there's more subkeys.




We need to restore this key.
Click the incorrect key in the left-pane and rename it by adding ".bak2" to the end of it.
Now click the correct key (the one with ".bak" at the end of it) and remove the ".bak" from its name.
Exit the Registry Editor and restart your computer. After logging back in, desktop files, shortcuts etc and folders and files in the User area should be restored. Any shortcuts to applications should work again.
If you have Microsoft Outlook, it may need to be reconfigured and any local .pst files be imported again.

Monday, 17 May 2010

Can't add HTTP Network Place in Windows 7

Not being able to add an HTTP Network Place was previously a problem in Windows Server 2003 and Windows Vista. You'd assume that in Windows 7 they would have sorted this, but no.
There' still no Microsoft hotfix either, shockingly!
Anyway, there's loads of supposed "fixes" out there, some people have reportedly tried all of them with no success, and some people have given up and used third-party software instead.
I tried all the fixes, and found only one that sorted my problem, and I've detailed how to do this with the instructions below.
The problem apparently lies in the authentication of the Web Client service within Windows 7, and with a simple registry change, I enabled the Web Client to authenticate and therefore allow me to add an HTTP Network Place within Windows 7.
Open up Registry Editor, in Windows 7 this can be done by clicking the Start menu and typing 'regedit'.
Now we need to navigate to the relevant part of the registry, go to:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesWebClientParameters
You should now have a screen that looks like the below;
(click image to enlarge)
Right-Click on BasicAuthLevel and select Modify
In the screen that opens, change the "1" to a "2" and click OK.
Close the Registry Editor.
Now we need to restart the WebClient service. Alternatively, you can reboot your machine, but if you've got a lot going on then rebooting the WebClient service manually is easy.
Go to the Start menu, then Control Panel. In Control Panel go to System & Security and then Administrative Tools. Open Services.
Scroll down the list to the WebClient service, right-click and hit restart.
(click image to enlarge)
Once the service has successfully stopped and restarted, you're done!
Now try adding your HTTP Network Place again and it should work.