Back in November I finally took the plunge and upgraded my home computer to the 64bit version of Windows Vista Ultimate via a clean install. One thing I did immediately after the install was to move the \users directory from c:\users to f:\users. I did this for two reasons. First, the drive Vista was installed on was only 250GB and I could see running out of room pretty quickly given all of the documents, pictures, videos, etc. I had on the system. The second reason for the move is that I wanted to separate my data from the operating system as much as possible to make upgrades and backups easier to manage.

Unfortunately, there's no easy way in Vista to relocate the \users directory. If you know what you're doing you can change the location during install by using an unattended install, but this can be very complicated to do and is something that's beyond most casual users. In the end I settled on moving all of c:\users over to f:\users and using symbolic links to point from c:\users to f:\users. That way programs could continue to reference c:\users but the operating system would be smart enough to know and forward all requests to f:\users. Following the directions here I was able to move the directories and files and create the required symbolic links. Everything worked well until I got back from vacation last week and my wife tried to login to her account to pay some bills and was greeted by the following error: "The User Profile Service service failed the logon. User profile cannot be loaded." This seemed odd because she had successfully logged into her account only a few weeks ago.

Searching the web for answers turned up this site, which nearly everyone else experiencing the problem linked to.

My problem boiled down to this. I could log in to vista using my (Admin) account and create as many new users as I wanted to via the User Management tools in the control panel. In the User Management tool, I could see each and every one of the new accounts. When I booted up the system or choose to Switch Users, all of the newly created accounts showed up on the log in screen. However, any attempt to log in using any of those accounts resulted in the same "The User Profile Service service failed the logon. User profile cannot be loaded" error.

The recommended solution involved making changes to a specific registry entry that had become corrupted and contained a backup entry. After looking through the recommended solutions, it was obvious to me that my problem was a little different from the majority of users posting to the site. In my case, there was no corrupt registry entry and no backup key to work with. In fact, there were no registry entries for any user accounts other than my working Admin account. I also didn't have a system restore point that went back far enough before I was convinced that the problem had started. From what I could tell, the problem started after an automated Windows update had been applied. The recommendation made to me and others on the forums with the same problem was to reinstall Vista, something I wasn't keen on doing.

At this point, it seemed to me that something must be wrong with the initial creation of a user's profile the first time they log on to Vista. When you create a new user account from the User Manager, Vista doesn't actually create the user's directories until their first log in. When a user logs in for the first time, Vista uses the contents of c:\users\default as a template for the directory/file structure for that user. In the case of the "The User Profile Service service failed the logon. User profile cannot be loaded", I was getting the new user directory (and associated registry entry) was never getting created.

A little more digging through the various Windows log files turned up something interesting. In addition to all of the errors stemming from the user not being able to log in successfully was a warning that a particular filename/extension was to long to be copied. Here it turns out that Vista ran into a problem while trying to copy the default profile during the account creation/log in process. Specifically there are two directories preventing the default profile from being created. The first is:

c:\users\default\AppData\Local\Application Data

As you can see in the following screen shot, the root Application Data folder contains a lot of recursively added \Application Data folders. My best guess is that something went wrong during one of the Windows update processes, resulting in all of the extra recursive \Application Data directories. From the research I've done this doesn't appear to be limited to a single specific Windows update as people have reported the problem as far back as 2007.

Screen1

The second directory you'll need to take a look at is:

C:\users\default\Local Settings\Application Data

Again, if you look in this directory you should find several more levels of \Application Data appended to the top level \Application Data:

Screen2

In both cases, what you'll need to do is to delete all of the additional occurrences of \Application Data below the root level. Once you've done this any user experiencing the "The User Profile Service service failed the logon. User profile cannot be loaded" error should be able to login.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Dawn Walker's Gravatar there is no easy way out of this...is there.
# Posted By Dawn Walker | 1/24/09 12:13 PM
Amanda's Gravatar I was glad to have found your post as it answered my own questions: why did new profiles not show up when I attempted to edit the registry settings?

I did manage to find a (slightly simpler) solution by piecing together various snippets on similar subjects. It seemed the issue was that Data Execution Prevention was stopping the new profile from being written. I needed to switch this off completely before a new account could be created successfully.

Here are the steps I had to take:

1. Disable User Account Control (through profiles settings)
2. Rum CMD then type bcdedit.exe /set {current} nx AlwaysOff
3. Hit "enter". You should receive a message ot say process has been successful.
4. Create a new administrator profile (delete existing problematic profile if necessary)
5. Restart and attempt login with new account.

For others it may not be necessary to delete/create a new account. I was working with a computer which my (non-tech savvy) friend had just bought and asked me to clean up for her.

In any case, I hope this information will be helpful for those experiencing a similar issue :)
# Posted By Amanda | 2/20/09 7:35 PM
Wytze's Gravatar Dear Rob, Dawn,
Hopefully you can advice me on 'my level'. I have been googling-around on said error message and concluded I hit the non-typical case matching your description:
I can access my Vista PC using the originally created admin account. However, any additionally created account triggers the error message. Looking in C:\users, I do not see any folder for the newly created account. Also the frequently quoted solution involving correcting the corrupted account by renaming the .bak entry in the registry does not help: the entry is not present in the registry. This seems to be similar to the issue/solution you describe
I tried following your advice, but was not succesful. I had difficulties understanding your steps.
Could you possibly [re]describe the steps taken to resolve the issue with a more novice level usr in mind?
# Posted By Wytze | 5/18/09 4:58 PM
Mark's Gravatar Thanks!

I had the same problem with new accounts, thanks to your post i could find my error and how to fix it!

It was by deleting the following file:

C:\Users\Default\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm
# Posted By Mark | 8/22/09 10:13 AM
Scott's Gravatar This helped with a Windows 7 issue, I was getting the same error message--but in my case, it was actually permissions to the Default user profile that were messed up. Your suggestion to check out the system logs helped (don't know why I didn't think to do that). In the end, I copied a Default profile from another machine in this lab to the machine in question, and that seems to have worked!
# Posted By Scott | 9/3/09 11:34 AM
Leese's Gravatar Sigh... I hope someone can help me because I am THE MOST un-savvy computer person in the northern hemisphere!!

I too, have received this error but it is on the ADMIN account. From what I was reading, I think what happened was my step son got peeved that there were parental controls and computer usage time limits on the "Kids" account and may have tried to just "delete" the administrative account.

The thing that I'm confused about is ... well.. how am I going to get this fixed or what do I need to do to fix this.. the second is why is it then when he tries to access something that requires the administrative password, Vista accepts the password with no problem but will not allow me to use the same password to access the Admin account.

Oh God, someone help me please!!!! LOL
# Posted By Leese | 9/9/09 9:19 PM
Maria's Gravatar I have the same problem as Leese and I can't use any the above suggestions
because I simple can't log on Adm account. How can I fix it please?
Thank you
# Posted By Maria | 9/21/09 10:06 AM
ken's Gravatar I'm having the same problem as Maria. I'm open to any suggestions.
Thank you,
# Posted By ken | 9/23/09 2:52 PM
Brock Sampson's Gravatar After many hours of also fighting this, I have done ALL of the above steps including deleting windows live (since it is not used anyway).....
Also my primary admin and secondary standard user account would log on just fine and when I created another standard user account for my sister it would never log on from the initial creation of it....I really dont know
if the above steps helped or not b/c after doing the above suggestions and deleting the new account and creating it yet again it would still not log on....But what did fnally work for me was to turn off all security,
firewalls and UAC, then creating a new admin acct...SUCCESS! the secondary admin account logged on fine... ( of course I did not want anyone else to have admin access), I then changed it back to a standard user and
reenabled all security, firewalls, and UAC and the account still logs on fine...with proper security/credentials....Hopefully anyone having the same problem will try this and save themselves hours of frustration like I had!

Good Luck!
Go Team Venture!
# Posted By Brock Sampson | 10/8/09 3:50 AM
Biggles's Gravatar "The User Profile Service service failed the logon. User profile cannot be loaded"

I believe there are several (many?) reasons that this error can occur and it depends a little as to which thread you can land on as to whether or not you get the ‘magic’ answer for your problem.
In my case, it was my main (only) Admin user I could not log in to. My second (normal – non admin) user was working fine. Most functions working OK except I couldn’t get backup or restore to work or create or amend users.
The cause of my problem was a misguided attempt to clean up my C:\Users directory. Seeing a bundle of ‘users’ I had previously been experimenting with, I deleted them and accidently wiped out my ‘admin’ users folder and didn’t realise it. This was not a good move!
From reading info in other threads (which you need to do to get an idea of the different aspects to this error), I tried to run ‘Regedit’ to see the user settings in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
Unfortunately this wouldn’t run as my admin user was stuffed, so ..... searching further, other threads gave me missing bits and info I needed to do the repairs.
My EVENTUAL solution.
1.   Back up everything you can, however you can. Assume the worst. Assume the fix will not work and you will need a full Vista reinstall from scratch . Arghhh!!
2.   Re-boot your PC in safe mode. This is achieved by pressing the F8 key repeatedly during the boot process. Choose the option for ‘safe mode with command prompt’.
3.   This will take you to a fuzzy windows log on screen, where surprisingly, I was able to log on as my admin user and eventually was presented with a command prompt screen. Note : I had to repeat steps 2 & 3 a few times before it delivered for some reason.
4.   At the command prompt I was able to recreate the missing admin users C:\Users\.... directory via a MD command.
5.   Rebooted as per steps 2 & 3 again. Logged in as admin user again and now I was able to click on start and run REGEDIT to see the profile setting entries under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

6.   Now you need to be a little careful here, so when in doubt, DON’T !!

7.   Have a look at each of the entries under here and try to understand what you are seeing. There should be one entry for every user you have ever created, and probably a few others as well. You should be able to identify each of your users by the value in the ProfileImagePath key.
8.   I had no entry for my admin user at all (obviously my problem), but I had an entry for a user I had ’deleted’ some time back. So I simply amended the dead users entry. I set the ProfileImagePath key to point to the C:\Users\.... I had re-created at step 4, and set the State and RefCount keys to 0 (zero) as recommended in other posts.
9.   There was another entry here where the profile name ended in .BAK Various posts suggested this one be deleted, so I did but I’m not sure it had any relevance in my case as it was not pointing to my problem user.
10.   I rebooted as for normal windows and ‘voila’. There was joy and happiness !! I was able to log in the my admin user as normal .
11.   Using normal control panel functions, I immediately created a second admin capable user.
12.   Logged in with this new admin user, then deleted the original admin user that had the problem. I then made sure that at least two users were ‘admin’ capable, just in case ....
13.   Run my backups, etc. Then retired for the evening ....... happy that I had escaped ....... this time !!
# Posted By Biggles | 10/10/09 11:18 PM
Cori's Gravatar well here is my problem I can log on to my mothers account but not mine it give me that user profile service failed log on but when I go through my mothers and try delete my account and make a new one my computer wont even bring up the window to let me delete or create new account log in so what are the steps I need to take in order to fix this? cause it started happening when my mother accidently locked herself out of her account log in and now i cant acess any of my files that I need
# Posted By Cori | 10/11/09 2:10 PM
Dale's Gravatar OK. I have the same problem that you had: I can login via my admin account but when trying to create a new profile (for my 8-yr old) I get the user profile cannot be loaded message. However, when trying to implement your resolution
I have a problem: namely, in the users/default/appdata/local/ folder I cannot access the Application Data folder. The Application Data folder has that little arrow that curves up to the right and when I click on it an error
message pops up that reads, "[the path] is not accessible. Access is denied."

Any suggestions?
# Posted By Dale | 10/17/09 9:08 AM
jeff's Gravatar Thanks Mr Brooks-Bilson, you fixed my problem. It wasn't precisely the same as yours but following your example and checking the windows error log I found an error copying a film from the default account to a new account. The difference from your error was that it was a different file and it seemed to be a permissions error stopping it being copied. In fact it was the same file which Mark, above, mentioned as the culprit in his problem, i.e. it was in AppData, in a folder called "Windows Live", and something about sqm. Deleting it solved the new account creation problem. I think what caused the problem was that earlier today I thought I would install some Windows Live components (Windows Messenger) but then aborted the installation halfway through (using the cancel button, not by any unorthodox means). Obviously this file was left behind in the Default user's AppData folder and caused the error in creating the new accounts. Thanks again as most Google searches for the error message bring up the other problem, thanks for making this blog post!

Jeff.
# Posted By jeff | 10/25/09 2:56 PM
Courtney's Gravatar With the same problem as Maria and Ken, I'm getting annoyed that nothing is working.

Thanks to suggestion from Biggles, I was able to create a new account via MD Commands, so at least I have an account and can use my laptop for something more than a rather large paperweight.

Unfortunately, I still cannot access the admin controls or old account's files from the new account. Because I have no admin capabilities, I cannot change the RefCount (1) or State (32768) to zero, and that seems to be what would work-if only because I can't do it.
# Posted By Courtney | 11/3/09 6:06 PM
mike's Gravatar I had user profile log on failed problems with my admin account and tried some of the solutions posted her with no luck. I tried a method from another place and it worked! I was able to create a new admin account and regained control of my computer. I imported my old stuff to my new account before i deleted it. Here is the place. http://www.vistax64.com/tutorials/67567-administra...
# Posted By mike | 11/25/09 6:25 PM
yuspino's Gravatar Unistall GOOGLE UPDATER. This software is one of the "temp error profile".
# Posted By yuspino | 11/29/09 2:58 PM
ugh's Gravatar this is too complicated :|
# Posted By ugh | 12/2/09 12:37 PM
Courtney's Gravatar Error: "User Profile Service failed the logon. User profile cannot be loaded."

Based on help posted here and elsewhere, this is what I found helped the most. Saved passwords, bookmarks, etc are lost unless you know where to look to transfer them, but files/photos/music can be saved easily.

Run computer in [Safe Mode with Command prompt] for all of this. Save yourself the headache of restarting it an infinite number of times.

Log in to problem profile

Using the Command Prompts: type text in [ ] without using backspace, hit "enter"
You may need to repeat the commands to get the proper responses. If you mess up, just finish typing the command and try again.

CP: [net user administrator /active: yes]
--command to un-hide the admin account. Returns successful acknowledgment

CP: net user <username> <password> /add (/domain)
--creates new standard account with username and password as typed. Returns successful acknowledgment

If yours, like mine, had failed to open Windows Explorer and won't give you a tool bar,
CP: start.. <yes, two periods
--opens Windows Explorer, then maneuver through the folders to get into the Control Panel > Users > Profiles of my problem profile where I could access the files. I copy-pasted them into the working profile/new standard profile.

Log out of problem profile

Log in to the newly found admin account, Control Panel > User Accounts > Manage Another Account to change my working profile from standard to admin.

Log out of admin account

Log in to the working account to be sure everything transferred accounts nicely. If it didn't, you should be able to access the files as before through the working profile until it does. If it did, Control Panel > User Accounts > Delete Account the problem profile.

CP: [net user administrator /active: no]
--command to hide the admin account. Returns successful acknowledgment


Now feel free to restart in normal mode and continue on with life, using the new working admin file in place of the old, now deleted, file.
# Posted By Courtney | 12/3/09 12:16 PM
Tallaz's Gravatar I having troubles getting to that directory... Can someone tell me exactly how to get to the point shown in the windows above... A bit of a novice here.. Thanks
# Posted By Tallaz | 12/4/09 6:17 AM
Cat's Gravatar I have received the same log on user profile service failed, but unfortunately, i cannot even turn on the computer. It shuts down every time i try to click on the log on. is there any help out there any recommendations on how to get to a safe mode to delete account? The computer did not bring any cd's for recoevey, etc....
# Posted By Cat | 12/15/09 7:00 PM
Charles's Gravatar I had the same problem in Windows 7 after moving the user profile folder to another drive. Thanks to this post, I discovered it was caused by a security problem on a few files/folders in the C:\Users\Default folder. I was able to easily fix it by going into the Advanced Security Settings for the C:\Users\Default folder and checking the box to "Replace all child object permission with inheritable permissions from this object".
# Posted By Charles | 12/25/09 11:14 AM
Danny's Gravatar The power knocked off the computer and I get the error message. I tried going into the event view and Could not find a way to delete the errors. How do you delete. I can't delete the affected user profile, it is the only administrator
# Posted By Danny | 12/25/09 5:28 PM
problem?!?!?! >.<'s Gravatar hey! so im not sure if this has anything to do with anything the we are talking
about here, but i have a slight problem. i have winodows vista on my C drive.
i decided i wanted an upgrade, so I tried to install windows 7. it said that i
didnt have enought space on my C, so i decided o put it on my D drive. so now
my computer is running 2 operating systems. i was wondering if anyone could
tell me how to uninstall windows vista. if you have any links to send me to,
by all means please to that!
# Posted By problem?!?!?! >.< | 1/5/10 3:36 PM
Emily Prass's Gravatar I can't log into my administrator account? Would the same thing work
if I use a guest account?
# Posted By Emily Prass | 1/7/10 12:48 PM
Emily Prass's Gravatar if you log on under SAFE MODE you can reset the system back a few days. I
this when my computers admin account came up with the same message and i
it's working now!
# Posted By Emily Prass | 1/7/10 1:09 PM
Charles's Gravatar I have had this similar problem and checked everywhere for an answer and tried just about everything with no results until I looked at Charles' reply here about setting permissions on the "Default" user folder.

@Charles
Thanks for posting what you found here! That worked quick and easy. It makes sense also since there isn't a problem for most in creating an account but only when logging into the account.

For others. . . Here are the explicit steps.

Step 1: show hidden files and folders
explorer->tools (menu)->folder options->view->check "show hidden files, folders, and drives"-> click "ok"

step 2: change "Default" user folder security settings
navigate to c:\Users\->right click "Default" folder->select "properties"->click "security" tab->click "advanced"->click "change "permissions"->highlight the "administrators" account->check both radio boxes below "add" ("include inheritable. . " and "Replace all child. . .")->click "apply"->click "OK"

That should work and allow you to log into the new account you create or created. If you have some problem try to set permissions again with the current admin logged in or log-in as default admin. Many of the fixes for this problem are based on the assumption that you have an account that is bad. If that is the case then you would not be able to login to that account that you were able to log into previously and you made no major changes to your computer, etc. . . if you are like me and never deleted any user accounts and there is no .bak in the registry with any user accounts, then most likely the problem has something to do with the permissions set on the "Default" user account that is used by the system to create all new accounts--that's why the service can't be started, the system isn't being allowed to access the "Default" user files/folders. Hope that saves some people some time. . . I spent a day looking for answers and the solution took two minutes!

Best of luck and thanks to Rob for having this post!!!
# Posted By Charles | 1/9/10 9:19 AM
Rich's Gravatar As in Dale's post above - I just had this error message come up when creating a new user account and trying to go in for the first time. Problem is still related to copying over the dir structure I guess. My solution - make the account an admin account, log in for the first time to set everything up, then log out and reset it to a user account from your admin.
# Posted By Rich | 1/10/10 4:14 AM
Kelly's Gravatar Can someone please help me asap?! My window 7 cannot log on. I only have one user account and it won't let me login. I've been searching everywhere for a solution but none of it can help me.I put in my password correctly but this message keeps popping up. It says, "The user profile service failed the logon. User profile cannot be loaded." When I put in my password, it won't log me in. Please help me ASAP! My parents aren't so sure what to do.
# Posted By Kelly | 1/15/10 7:07 PM
qingchengpai's Gravatar my problem is I cant logon, same message: user profile service service failed to logon.

but I have no option of login to other user accounts, my laptop is a Toshiba Satellite and I can find the safe mode boot

pressing f8 does not work, f2 and f12 dont give me access to safe mode boot

please help

thanks
# Posted By qingchengpai | 1/19/10 9:02 AM



Copyright 1995-2010 Rob Brooks-Bilson. All rights reserved.
Aura skin for Raymond Camden's BlogCFC inspired by Joe Rinehart & Steven Erat. This blog is running version 5.9.004.