Microsoft KB Archive/305089

= How to enable debug logging for Terminal Services Licensing =

Article ID: 305089

Article Last Modified on 2/19/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server

-



This article was previously published under Q305089



SUMMARY
This article describes how to enable debug logging for Terminal Services Licensing. This may be helpful for troubleshooting purposes.



MORE INFORMATION
NOTE: To obtain more debug output, you can apply the checked version of Lserver.exe on the affected computers.  Change the Terminal Services Licensing service settings in Control Panel. Click to select the Allow service to interact with desktop check box on the Log On tab. Start Registry Editor on the server that is running Terminal Services Licensing, locate and then click the following key:

HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/TermServLicensing/Parameters

 Create a DWORD value named Console. Set the value to 1. Create a DWORD value named Log Level. Set the DWORD value as needed according to the following matrix:

Set the value to FFFFFFFF for full debug information.

Debug level : Bit 0 to 13 (total of 14 debug levels)

Severity code : Bit 30 and 31
 * 1) define DBG_SUCCESS                    0x00
 * 2) define DBG_INFORMATION                0x01
 * 3) define DBG_WARNING                    0x10
 * 4) define DBG_ERROR                      0x11

Facility code : Bit 14 - 29
 * 1) define DBG_FACILITY_JETBLUE           0x00001
 * 2) define DBG_FACILITY_RPC               0x00002
 * 3) define DBG_FACILITY_KEYPACK           0x00004
 * 4) define DBG_FACILITY_LICENSED          0x00008
 * 5) define DBG_FACILITY_KEYPACKDESC       0x00010
 * 6) define DBG_FACILITY_ALLOCATELICENSE   0x00020
 * 7) define DBG_FACILITY_INIT              0x00040
 * 8) define DBG_FACILITY_LOCK              0x00080
 * 9) define DBG_FACILITY_HANDLEPOOL        0x00100
 * 10) define DBG_FACILITY_RETURN            0x00200
 * 11) define DBG_FACILITY_UPGRADE           0x00400
 * 12) define DBG_FACILITY_POLICY            0x00800
 * 13) define DBG_FACILITY_WORKMGR           0x01000
 * 14) define DBG_FACILITY_WKSTORAGE         0x02000
 * 15) define DBG_FACILITY_SRVLIST           0x04000
 * 16) define DBG_FACILITY_JOB               0x08000

All levels:
 * 1) define DBG_ALL_LEVEL                  0x000003FF

Debug level:
 * 1) define DBGLEVEL_FUNCTION_ERROR        0x0001
 * 2) define DBGLEVEL_FUNCTION_TRACE        0x0001
 * 3) define DBGLEVEL_FUNCTION_DETAILSIMPLE 0x0002
 * 4) define DBGLEVEL_FUNCTION_DETAILFULL   0x0004
 * 5) define DBGLEVEL_FUNCTION_ALL          DBG_ALL_LEVEL

 Stop the Terminal Services Licensing service and restart it. A console window opens on the console of the server that is running Terminal Services Licensing.

NOTE: This does not work in a Terminal Services session.

Keywords: kbhowto KB305089

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.