Article ID: 154120 - Last Review: November 1, 2006 - Revision: 1.3 Debugging User Profiles and System Policies in Windows NT 4.0This article was previously published under Q154120 IMPORTANT: This article contains information about modifying the registry. Before you
modify the registry, make sure to back it up and make sure that you understand how to restore
the registry if a problem occurs. For information about how to back up, restore, and edit the
registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986
(http://support.microsoft.com/kb/256986/EN-US/
)
Description of the Microsoft Windows Registry
SUMMARY
The checked version of Userenv.dll, in conjunction with a registry entry,
creates a log file useful in troubleshooting and debugging problems with
roaming profiles and system policies on Microsoft Windows NT version 4.0
clients.
MORE INFORMATION
To enable the log file:
A sample Userenv.log based on the following information is shown below.
Username = profile
Profile path defined in User Manager =
PDCServerName\Profiles\%username%
Domain Controller = PDCServerName
System Policy Path: PDCServerName\Netlogon
Profile is not reachable, error = 2 -------------------------------------------------------------------------- LoadUserProfile: Entering, hToken = <0xa8>, lpProfileInfo = 0x12f4e8 LoadUserProfile: lpProfileInfo->dwFlags = <0x2> LoadUserProfile: lpProfileInfo->lpUserName = <profile> LoadUserProfile: lpProfileInfo->lpProfilePath = <\\PDCServerName\profiles\profile> LoadUserProfile: lpProfileInfo->lpDefaultPath = <\\PDCServerName\netlogon\Default User> LoadUserProfile: lpProfileInfo->lpServerName = <\\PDCServerName> LoadUserProfile: lpProfileInfo->lpPolicyPath = <\\PDCServerName\netlogon\ntconfig.pol> ParseProfilePath: Entering, lpProfilePath = <\\PDCServerName\profiles\profile> ParseProfilePath: Tick Count = 60 ParseProfilePath: FindFirstFile found something with attributes <0x10> ParseProfilePath: Found a directory LoadUserProfile: ParseProfilePath returned a directory of <\\PDCServerName\profiles\profile> RestoreUserProfile: Entering RestoreUserProfile: Profile path = <\\PDCServerName\profiles\profile> RestoreUserProfile: User is a Admin IsCentralProfileReachable: Entering IsCentralProfileReachable: Testing <\\PDCServerName\profiles\profile\ntuser.man> IsCentralProfileReachable: Profile is not reachable, error = 2 IsCentralProfileReachable: Testing <\\PDCServerName\profiles\profile\ntuser.dat> IsCentralProfileReachable: Found a user profile. RestoreUserProfile: Central Profile is reachable RestoreUserProfile: Central Profile is floating GetLocalProfileImage: Found entry in profile list for existing local profile GetLocalProfileImage: Local profile image filename = <%SystemRoot%\Profiles\profile> GetLocalProfileImage: Expanded local profile image filename = <C:\WINNT\Profiles\profile> GetLocalProfileImage: Found local profile image file ok <C:\WINNT\Profiles\profile\ntuser.dat> Local profile is reachable Local profile name is <C:\WINNT\Profiles\profile> RestoreUserProfile: About to call UpdateToLatestProfile UpdateToLatestProfile: Entering. Central = <\\PDCServerName\profiles\profile> Local = <C:\WINNT\Profiles\profile> UpdateToLatestProfile: Central and local profile times match. RestoreUserProfile: About to Leave. Final Information follows: Profile was successfully loaded. lpProfile->szCentralProfile = <\\PDCServerName\profiles\profile> lpProfile->szLocalProfile = <C:\WINNT\Profiles\profile> lpProfile->dwInternalFlags = 0x112 RestoreUserProfile: Leaving. UpgradeProfile: Entering UpgradeProfile: Build numbers match UpgradeProfile: Leaving Successfully ApplyPolicy: Entering ApplyPolicy: PolicyPath is: <\\PDCServerName\netlogon\ntconfig.pol>. ReconcileFile: \\PDCServerName\netlogon\ntconfig.pol ==> C:\WINNT\Profiles\Policy\ntconfig.pol [OK] ApplyPolicy: Local PolicyPath is: <C:\WINNT\Profiles\Policy\ntconfig.pol>. ApplyPolicy: Leaving succesfully. LoadUserProfile: Leaving with a value of 1. hProfile = <0x90> -------------------------------------------------------------------------- Below is a successful logoff and update by the client of the server- based roaming profile. -------------------------------------------------------------------------- UnloadUserProfile: Entering, hProfile = <0xe0> UnloadUserProfile: Succesfully unloaded profile UnloadUserProfile: Copying profile back to \\PDCServerName\profiles\profile CopyProfileDirectory: Entering, lpSourceDir = <C:\WINNT\Profiles\profile>, lpDestinationDir = <\\PDCServerName\profiles\profile>, dwFlags = 0x32 ReconcileFile: C:\WINNT\Profiles\profile\NTUSER.DAT ==> \\PDCServerName\profiles\profile\NTUSER.DAT [OK] ReconcileFile: C:\WINNT\Profiles\profile\ntuser.dat.LOG ==> \\PDCServerName\profiles\profile\ntuser.dat.LOG [OK] CopyProfileDirectory: Leaving with a return value of 1 UnloadUserProfile: Leaving with a return value of 1 -------------------------------------------------------------------------- | Article Translations
|
Back to the top
