Re: LoadUserProfile

From: Bob (anonymous_at_discussions.microsoft.com)
Date: 12/06/03


Date: Sat, 6 Dec 2003 08:16:22 -0800

I have got ahead on this a little. I think I found an
undocument requirement for loading the profile
(SE_RESTORE_NAME has to be enabled) and now during the
call to LoadUserProfile, the popup box says

"Windows cannot log you on because the profile cannot be
loaded. Contact your network administrator.

DETAIL - The system cannot find the file specified."

So now, the error code is "0" (zero!). but the profile key
handle remains NULL. Great huh?

I've turned on the user logs. Relevant portion is as
follows:

USERENV(5a8.280) 10:48:40:400
GetExistingLocalProfileImage: Found local profile image
file ok <C:\Documents and Settings\Admin.BOB\ntuser.dat>
USERENV(5a8.280) 10:48:40:410
GetExistingLocalProfileImage: Failed to query low profile
unload time with error 2
USERENV(5a8.280) 10:48:40:420 Local Existing Profile Image
is reachable
USERENV(5a8.280) 10:48:40:420 Local profile name is
<C:\Documents and Settings\Admin.BOB>
USERENV(5a8.280) 10:48:40:430 RestoreUserProfile: No
central profile. Attempting to load local profile.
USERENV(5a8.280) 10:48:40:440 MyRegLoadKey: Failed to
enable restore privilege to load registry key
USERENV(5a8.280) 10:48:40:440 MyRegLoadKey: Mutex
released. Returning 0.
USERENV(5a8.280) 10:48:40:450 RestoreUserProfile: Failed
to open current user key. Error = 2
USERENV(5a8.280) 10:48:40:460 RestoreUserProfile: Could
not load the user profile. Error = 2
USERENV(5a8.280) 10:48:50:805 MyRegUnloadKey: Failed to
enable restore privilege to unload registry key
USERENV(5a8.280) 10:48:50:815 MyRegUnloadKey: Mutex
released. Returning 0.
USERENV(5a8.280) 10:48:50:815 RestoreUserProfile: About
to Leave. Final Information follows:
USERENV(5a8.280) 10:48:50:825 Profile was NOT successfully
loaded.
USERENV(5a8.280) 10:48:50:835 lpProfile->lpRoamingProfile
= <>
USERENV(5a8.280) 10:48:50:835 lpProfile->lpLocalProfile =
<C:\Documents and Settings\Admin.BOB>
USERENV(5a8.280) 10:48:50:845 lpProfile->dwInternalFlags =
0x0
USERENV(5a8.280) 10:48:50:855 RestoreUserProfile: Leaving.
USERENV(5a8.280) 10:48:50:855 LoadUserProfile:
RestoreUserProfile returned FALSE
USERENV(5a8.280) 10:48:50:865 LoadUserProfile: Releasing
mutex.
USERENV(5a8.280) 10:48:50:875 LoadUserProfile: Leaving
with a value of 0.
USERENV(5a8.280) 10:48:50:875 GetLastError() = 0x2
USERENV(5a8.280) 10:48:50:885
=========================================================
Thanks in advance for any insights you can offer.
Bob.



Relevant Pages

  • Re: problem opening excel-word-access (office files in general ) double clicking in Windows
    ... we can delete and recreate the local profile to test the issue. ... problem opening excel-word-access (office files in general) ... To come into Windows safe mode, ...
    (microsoft.public.office.setup)
  • Re: moving small business server 2003 to a new physical server
    ... > There are three methods for you to migrate the SBS 2003 to the new hardware: ... > Migrating from Small Business Server 2000 or Windows 2000 Server to Windows ... > Another way is to create a local profile, ...
    (microsoft.public.windows.server.sbs)
  • Re: Server crash Re-created AD resulting problems
    ... having to leave and then re-join the domain on the workstations? ... to the user profiles tab in system properties to "copy" the profile to ... two stations has created whole new local profile folders for the ...
    (microsoft.public.windows.server.active_directory)
  • RE: Roaming profiles - not initialising
    ... This newsgroup only focuses on SBS technical issues. ... |>roaming profile when they logon to they own computer. ... Please try to backup the local profile for the domain user: ...
    (microsoft.public.windows.server.sbs)
  • RE: Roaming profiles - not initialising
    ... roaming profile when they logon to they own computer. ... So the user will logon local profile instead of roaming profile. ... Use the Networking MPS report to capture the client computer networking ...
    (microsoft.public.windows.server.sbs)

Loading