Recipe 16.16. Enabling User Environment Logging


Problem

You want to troubleshoot issues with a user's profile or the processing of system policy and Group Policy by enabling verbose user environment logging.

Solution

Using the Registry

To enable verbose user environment logging, set the following Registry value:

Key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon Value Name: UserEnvDebugLevel Value Type: REG_DWORD Value Data: 10002 (hexadecimal)

The log file is located at %SystemRoot%\Debug\UserMode\Userenv.log.

Discussion

After you modify the Registry, verbose logging will occur as soon as a profile related action occurs (e.g., Group Policy is processed). You can force Group Policy to be applied by running gpupdate /force from the command line, or by restarting the computer.

By default, the logging level is "normal," even if the Registry value we described does not exist. That's why the Userenv.log may already exist before you enable verbose logging. To disable verbose logging and go back to normal logging, you can either delete the Registry value or set it to 10001. It is a good idea to disable it when you aren't using it because the log file will continue to grow and consume disk space.

See Also

MS KB 221833, "How to Enable User Environment Debug Logging in Retail Builds of Windows"



Windows XP Cookbook
Windows XP Cookbook (Cookbooks)
ISBN: 0596007256
EAN: 2147483647
Year: 2006
Pages: 408

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net