+ Post New Thread
Results 1 to 8 of 8
Windows 7 Thread, Windows 7 user profile failed error...... again! in Technical; Bit of a strange one, We have some newly installed Windows 7 laptops, joined to our Server 2008 domain. When ...
  1. #1
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,201
    Thank Post
    211
    Thanked 222 Times in 191 Posts
    Rep Power
    72

    Windows 7 user profile failed error...... again!

    Bit of a strange one,

    We have some newly installed Windows 7 laptops, joined to our Server 2008 domain. When I try to login as a member of staff that already has a .V2 roaming profile I have no issues. The user has standard permissions on the local machine.

    However, when I log on as a user who does not yet have a .V2 profile on the domain I get the 'User Profile service has failed the logon' error. I have checked the permissions of the roaming profile share including NTFS permissions. All seems fine. In fact it creates a folder for them when they try to log on called username.V2

    The only way I have found to fix this is to add the users domain account into the Local Administrators group on the laptop. This then creates the profile and works just fine!

    Any ideas? I tried adding change NTFS permissions to the c:\users folder for everyone but that doesn't seem to have worked.

    Cheers

  2. #2

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180
    I've seen quite a few weird Windows 7 profile issues. I have found the best way to fix them is to delete the existing roaming profile and install a fresh copy of Windows 7 SP1 (the SP1 bit is important). All the problems then seem to go away. SP1 also seems to have fixed some odd WiFi issues I was having.

  3. #3

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    1,949
    Thank Post
    109
    Thanked 481 Times in 330 Posts
    Blog Entries
    2
    Rep Power
    281
    Quote Originally Posted by themightymrp View Post
    Bit of a strange one,

    We have some newly installed Windows 7 laptops, joined to our Server 2008 domain. When I try to login as a member of staff that already has a .V2 roaming profile I have no issues. The user has standard permissions on the local machine.

    However, when I log on as a user who does not yet have a .V2 profile on the domain I get the 'User Profile service has failed the logon' error. I have checked the permissions of the roaming profile share including NTFS permissions. All seems fine. In fact it creates a folder for them when they try to log on called username.V2

    The only way I have found to fix this is to add the users domain account into the Local Administrators group on the laptop. This then creates the profile and works just fine!

    Any ideas? I tried adding change NTFS permissions to the c:\users folder for everyone but that doesn't seem to have worked.

    Cheers
    there's a fairly simple fix for this problem where you delete some profile keys in the registry. I made a little script to tidy these keys I'll post it on Monday.

  4. #4
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,201
    Thank Post
    211
    Thanked 222 Times in 191 Posts
    Rep Power
    72
    That would be great @jinnantonnixx - these newly installed Windows 7 laptops have SP1 integrated

  5. #5

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    1,949
    Thank Post
    109
    Thanked 481 Times in 330 Posts
    Blog Entries
    2
    Rep Power
    281
    As promised. The user profile keys are stored here: HKLM_SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

    I wrote a script (below) which runs through each of these keys and if it's a server-profile, deletes it. It seems to work for me. I'm not plagued by that 'failed the login' error, at any rate.

    Deploy it as a machine startup script.

    Any queries, just ask.


    Code:
    Const HKEY_LOCAL_MACHINE = &H80000002
    
    strComputer = "."
    
    Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ 
    						strComputer & "\root\default:StdRegProv")
    
    
    'root of registry keys
    strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList"
    
    'build collection of keys to check
    objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
    
    'we now have a collection of subkeys in 'arrSubKeys'
    'look inside each key
    For Each subkey In arrSubKeys
    	CheckKey (strKeyPath & "\" & subkey)	
    Next
    
    
    Sub CheckKey (key)
    	'check the key to see if contains 'CentralProfile" string value (REG_SZ)
    	objReg.GetStringValue HKEY_LOCAL_MACHINE,key,"CentralProfile",sValue
    	'if the value is set, then it refers to a central profile and must be deleted
    	If Not IsNull (sValue) Then
    		DeleteKey (key)
    	End If	
    End Sub
    
    
    Sub DeleteKey (thisKey)
    	'delete all subkeys
    	objReg.EnumKey HKEY_LOCAL_MACHINE, thisKey, arrSubKeys
    	If IsArray (arrSubKeys) Then
    		For Each strSubKey In arrSubKeys
    			'recursively delete the key
    			DeleteKey (thisKey & "\" & strSubKey)
    		Next
    	End If
    	
    	'delete the registry key
    	objReg.DeleteKey  HKEY_LOCAL_MACHINE,thisKey
    End sub
    Last edited by jinnantonnixx; 4th July 2011 at 10:12 AM.

  6. 3 Thanks to jinnantonnixx:

    dave.81 (19th May 2014), stevenlong1985 (30th May 2012), themightymrp (4th July 2011)

  7. #6
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,201
    Thank Post
    211
    Thanked 222 Times in 191 Posts
    Rep Power
    72
    Thank you, will give it go

  8. #7
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,201
    Thank Post
    211
    Thanked 222 Times in 191 Posts
    Rep Power
    72
    So far so good, seems to be working Thanks again

  9. #8

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    1,949
    Thank Post
    109
    Thanked 481 Times in 330 Posts
    Blog Entries
    2
    Rep Power
    281
    Hooray!

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 19
    Last Post: 22nd March 2012, 11:45 AM
  2. Replies: 8
    Last Post: 25th May 2011, 09:44 AM
  3. The User Profile service Failed - NEW Users
    By Stuarte in forum Windows 7
    Replies: 3
    Last Post: 7th September 2010, 02:00 PM
  4. Roaming profile migration failed using Windows explorer manual copy
    By albertwt in forum Windows Server 2000/2003
    Replies: 4
    Last Post: 29th April 2010, 10:08 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •