Try Microsoft Edge, a fast and secure browser that's designed for Windows 10 Get started

Microsoft
  • Store
    Store home
    Devices
    • Microsoft Surface
    • PCs & tablets
    • Xbox
    • Virtual reality
    • Accessories
    • Windows phone
    Software & Apps
    • Office
    • Windows
    • Additional software
    • Windows apps
    • Windows phone apps
    Games & Entertainment
    • PC games (disc)
    • Windows digital games
    • Windows phone games
    • Movies & TV
    • Music
    Deals
    • Sale
    • Microsoft Surface deals
    • PC deals
    • Xbox deals
    More
    • Business
    • Students & educators
    • Developer
    • Gift cards
  • Products
    Software & services
    • Windows
    • Office
    • Free downloads & security
    • Internet Explorer
    • Microsoft Edge
    • Skype
    • OneNote
    • OneDrive
    • Microsoft Health
    • MSN
    • Bing
    • Microsoft Groove
    • Microsoft Movies & TV
    Devices & Xbox
    • All Microsoft devices
    • Microsoft Surface
    • All Windows PCs & tablets
    • PC accessories
    • Xbox & games
    • Microsoft Lumia
    • All Windows phones
    • Microsoft HoloLens
    For business
    • Cloud Platform
    • Microsoft Azure
    • Microsoft Dynamics 365
    • Windows for business
    • Office for business
    • Skype for business
    • Surface for business
    • Enterprise solutions
    • Small business solutions
    • Find a solutions provider
    • Volume licensing
    For developers & IT pros
    • Develop Windows apps
    • Microsoft Azure
    • MSDN
    • TechNet
    • Visual Studio
    For students & educators
    • Office for students
    • OneNote in classroom
    • Shop PCs & tablets perfect for students
    • Microsoft in Education
  • Support
Sign in
  • items in cart
items in cart

 Manage my account
 Manage my account
 Ask the community
 Contact us
 Find downloads

CV: WM7iWITq26Ei61mm.0

How to enable user environment debug logging in retail builds of Windows

  •  Email
  •  Print

Summary

The versions of Microsoft Windows that are listed in the "Applies to" section let you modify the registry to turn on debug logging of the user profile and the Windows system policy processes. You can also use this logging to track down problems that are related to the start of Desktop Standard PolicyMaker client-side extensions (CSEs). Debug logging functionality is also available in Microsoft Windows NT 4.0. However, in Windows NT 4.0, this functionality requires a checked (debug) build of the Userenv.dll file.

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

154120 Debugging user profiles and system policies in Windows NT 4.0

You can use debug logging output to troubleshoot problems with user profiles and Group Policy processing.

More Information

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows


Use Registry Editor to add or to modify the following registry entry:
Subkey: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
Entry: UserEnvDebugLevel
Type: REG_DWORD
Value data: 10002 (Hexadecimal)
UserEnvDebugLevel can have the following values:
NONE 0x00000000
NORMAL 0x00000001
VERBOSE 0x00000002
LOGFILE 0x00010000
DEBUGGER 0x00020000
The default value is NORMAL|LOGFILE (0x00010001).

Note To disable logging, select NONE (0x00000000).

You can combine these values. For example, you can combine VERBOSE 0x00000002 and LOGFILE 0x00010000 to get 0x00010002. Therefore, if UserEnvDebugLevel is given a value of 0x00010002, LOGFILE and VERBOSE are both turned on. Combining these values is the same as using an OR statement.
0x00010000 OR 0x00000002 = 0x00010002
Note If you set UserEnvDebugLevel to 0x00030002, the most verbose details are logged in the Userenv.log file.

The log file is written to the %Systemroot%\Debug\UserMode\Userenv.log file. If the Userenv.log file is larger than 300 KB, the file is renamed Userenv.bak, and a new Userenv.log file is created. This action occurs when a user logs on locally or by using Terminal Services, and the Winlogon process starts. However, because the size check only occurs when a user logs on, the Userenv.log file may grow beyond the 300 KB limit.

Although the 300-KB limit cannot be modified, you can set the read-only attribute on the Userenv.bak file, and the Userenv.log file will grow indefinitely. You must only use this method temporarily, remove the read-only attribute on the Userenv.bak file as soon as you are finished troubleshooting.
Properties

Article ID: 221833 - Last Review: Sep 11, 2011 - Revision: 1

PolicyMaker Standard 2.0, PolicyMaker Standard 1.0, Microsoft Windows Server 2003, Standard Edition (32-bit x86), Microsoft Windows Server 2003, Enterprise Edition (32-bit x86), Microsoft Windows Server 2003, Datacenter Edition (32-bit x86), Microsoft Windows Server 2003, Standard x64 Edition, Microsoft Windows Server 2003, Enterprise x64 Edition, Microsoft Windows Server 2003, Datacenter x64 Edition, Microsoft Windows XP Professional, Microsoft Windows 2000 Professional Edition, Microsoft Windows 2000 Server, Microsoft Windows 2000 Advanced Server

Feedback
Thanks! Your feedback will help us improve the support experience.

Support

Support

  • Account support
  • Supported products list
  • Microsoft Lifecycle Policy

Security

Security

  • Safety & Security Center
  • Download Security Essentials
  • Malicious Software Removal Tool

Contact Us

Contact Us

  • Report a support scam
  • Disability Answer Desk
  • Locate Microsoft addresses worldwide
This site in other countries/regions
Algérie - Français
Argentina - Español
Australia - English
Belgique - Français
België - Nederlands
Bolivia - Español
Bosna i Hercegovina - Hrvatski
Brasil - Português
Canada - English
Canada - Français
Chile - Español
Colombia - Español
Costa Rica - Español
Crna Gora - Srpski
Danmark - Dansk
Deutschland - Deutsch
Dominican Republic - Español
Ecuador - Español
Eesti - Eesti
El Salvador - Español
España - Español
Estados Unidos - Español
France - Français
Guatemala - Español
Hong Kong SAR - English
Hrvatska - Hrvatski
India - English
Indonesia (Bahasa) - Bahasa
Ireland - English
Italia - Italiano
Latvija - Latviešu
Lietuva - Lietuvių
Luxembourg - Français
Magyarország - Magyar
Malaysia - English
Maroc - Français
México - Español
Nederland - Nederlands
New Zealand - English
Norge - Bokmål
Panamá - Español
Paraguay - Español
Perú - Español
Philippines - English
Polska - Polski
Portugal - Português
Puerto Rico - Español
România - Română
Schweiz - Deutsch
Singapore - English
Slovenija - Slovenščina
Slovensko - Slovenčina
South Africa - English
Srbija - Srpski
Suisse - Français
Suomi - Suomi
Sverige - Svenska
Tunisie - Français
Türkiye - Türkçe
United Kingdom - English
United States - English
Uruguay - Español
Venezuela - Español
Việt Nam - Tiếng việt
Ísland - Íslenska
Österreich - Deutsch
Česká Republika - Čeština
Ελλάδα - Ελληνικά
България - Български
Казахстан - Русский
Россия - Русский
Україна - Українська
ישראל - עברית
الإمارات العربية المتحدة - العربية
المملكة العربية السعودية - العربية
مصر - العربية
भारत - हिंदी
ไทย - ไทย
中国 - 简体中文
台灣 - 繁體中文
日本 - 日本語
香港特別行政區 - 繁體中文
대한민국 - 한국어
Algérie - Français
Estados Unidos - Español
Perú - Español
Việt Nam - Tiếng việt
Argentina - Español
France - Français
Philippines - English
Ísland - Íslenska
Australia - English
Guatemala - Español
Polska - Polski
Österreich - Deutsch
Belgique - Français
Hong Kong SAR - English
Portugal - Português
Česká Republika - Čeština
België - Nederlands
Hrvatska - Hrvatski
Puerto Rico - Español
Ελλάδα - Ελληνικά
Bolivia - Español
India - English
România - Română
България - Български
Bosna i Hercegovina - Hrvatski
Indonesia (Bahasa) - Bahasa
Schweiz - Deutsch
Казахстан - Русский
Brasil - Português
Ireland - English
Singapore - English
Россия - Русский
Canada - English
Italia - Italiano
Slovenija - Slovenščina
Україна - Українська
Canada - Français
Latvija - Latviešu
Slovensko - Slovenčina
ישראל - עברית
Chile - Español
Lietuva - Lietuvių
South Africa - English
الإمارات العربية المتحدة - العربية
Colombia - Español
Luxembourg - Français
Srbija - Srpski
المملكة العربية السعودية - العربية
Costa Rica - Español
Magyarország - Magyar
Suisse - Français
مصر - العربية
Crna Gora - Srpski
Malaysia - English
Suomi - Suomi
भारत - हिंदी
Danmark - Dansk
Maroc - Français
Sverige - Svenska
ไทย - ไทย
Deutschland - Deutsch
México - Español
Tunisie - Français
中国 - 简体中文
Dominican Republic - Español
Nederland - Nederlands
Türkiye - Türkçe
台灣 - 繁體中文
Ecuador - Español
New Zealand - English
United Kingdom - English
日本 - 日本語
Eesti - Eesti
Norge - Bokmål
United States - English
香港特別行政區 - 繁體中文
El Salvador - Español
Panamá - Español
Uruguay - Español
대한민국 - 한국어
España - Español
Paraguay - Español
Venezuela - Español
  • English (United States)‎
  • Terms of use
  • Privacy & cookies
  • Trademarks
  • © 2017 Microsoft