- Rename the Userenv.dll file in the %systemroot%\System32 directory to
Usernv.org.
C:\> rename %systemroot%\system32\userenv.dll userenv.org - Copy the checked version of Userenv.dll to the %systemroot%\System32
directory of the client computer that you want to debug. The checked version of
the Userenv file must match the version of the operating system being
used.
C:\> copy userenv.chk %systemroot%\system32\userenv.dll - Apply the following registry hack:
Hive: HKEY_LOCAL_MACHINE
Key: SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Name: UserEnvDebugLevel
Type: REG_DWORD
Value: 10002
A log file of the roaming profile transactions will be written to userenv.log to the root of the C: drive.