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.
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:
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.
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 :)
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?
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
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
because I simple can't log on Adm account. How can I fix it please?
Thank you
Thank you,
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!
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 !!
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?
Jeff.
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.
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.
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!
if I use a guest account?
this when my computers admin account came up with the same message and i
it's working now!
@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!!!
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