Having problems with login scripts and Group Policies? You can enable verbose
logging to track all changes and settings applied using Group Policy and its
extension to the local computer and to users who log on to the computer. The log
file, userenv.log, will be written into the %windir%\debug folder. This folder
is a hidden folder. To enable verbose logging (Userenv.log):
Hive: HKEY_LOCAL_MACHINE
Key: Software\Microsoft\Windows NT\Current Version\Winlogon
Name: UserenvDebugLevel
Type: REG_DWORD
Set
UserenvDebugLevel=30002 is for verbose logging, UserenvDebugLevel=30001 is for
errors and warnings only, and UserenvDebugLevel=30000 logs nothing.
This hack provides very detailed information above and beyond what can be
determined by running the Global Policy
Results utility.