Microsoft KB Archive/893368

= Terminal services and remote desktop session events are not logged in Windows 2000 Server =

Article ID: 893368

Article Last Modified on 10/26/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server

-



Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
If auditing to log terminal services and remote desktop session events is enabled on a Microsoft Windows 2000 Server-based computer, the events are not logged in the System event log. For example, auditing is enabled for event logging for Terminal Services client logoffs and for shadowing.

Note Shadowing makes it possible for you to monitor a session of another user. All information that is displayed on the computer of the session that you are shadowing also appears on your computer.



Hotfix information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites
Microsoft Windows 2000 Service Pack 4 (SP4).

Restart requirement
You must restart your computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date         Time   Version         Size       File name --  07-Feb-2005  05:35  5.0.2195.7026   6,301,696  Sp3res.dll 07-Feb-2005 06:09  5.0.2195.7028     144,144  Termsrv.exe 19-Jun-2003 20:05  5.0.2195.6701      39,184  Winsta.dll



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

After you install the hotfix, make sure that you enable auditing for logon, logoff and remote control events. To do this, follow these steps:
 * 1) Click Start, point to Programs, point to Administrative Tools, and then click Terminal Services Configuration.
 * 2) In the Terminal services Configuration box, right-click RDT-Tcp, and then click Properties.
 * 3) In the RDP-Tcp Properties box, click the Permissions tab, and then click Advanced.
 * 4) In the Access Control Settings for RDP-Tcp box, click Add.
 * 5) In the Look in box, click the name of your server, click Everyone, and then click OK.
 * 6) In the Auditing Entry for RDP-Tcp dialog box, click to select the Successful check box and the Failed check box for the following entries:
 * 7) * Remote Control
 * 8) * Logon
 * 9) * Logoff
 * 10) Click OK three times.
 * 11) Close the Terminal Services Configuration window.

To turn on the functionality to log terminal services and remote desktop session events, you must add LogTSLogOff and LogRemoteControl registry entries to the registry. To do this, follow these steps:  Click Start, click Run, type regedit in the Open box, and then click OK. Locate and then click the following subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

 On the Edit menu, point to New, and then click REG_DWORD Value. Type LogTSLogOff, and then press ENTER. Right-click, and then click Modify.</li> Type 1 in the Value data box, and then click OK.</li> On the Edit menu, point to New, and then click REG_DWORD Value.</li> Type LogRemoteControl, and then press ENTER.</li> Right-click, and then click Modify.</li> Type 1 in the Value data box, and then click OK.</li> Quit Registry Editor</li></ol>

Windows 2000 Service Pack 4 (SP4) adds the EventMessageFile registry entry that is located under the following registry key:

Additionally, you must append the EventMessageFile entry with the following value, including the leading semi-colon :

Note Adding the EventMessageFile registry entry may cause Citrix MetaFrame event logging to stop working. If this issue occurs, contact Citrix to obtain a possible workaround or resolution to this issue.

After you turn on the functionality to log terminal services and remote desktop session events and then view the System event log, events similar to the following events are logged: Event Type: Information

Event Source: TermService

Event Category: None

Event ID: 35018

Date:

Time:

User: N/A

Computer:

Description:

Terminal Services Remote Control Attempt Succeeded:

\ attempted a Remote Control of:

User:

Domain:

Event Type: Information

Event Source: TermService

Event Category: None

Event ID: 35020

Date:

Time:

User: N/A

Computer:

Description:

Terminal Services Remote LogOff Success:

User Name:

Domain:

Source Network Address:

For additional information about how hotfix packages are named, click the following article number to view the article in the Microsoft Knowledge Base:

816915 New file naming schema for Microsoft Windows software update packages

For additional information about the standard terminology that is used to describe Microsoft software updates, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Note Only auditing of Remote Control, Logon, and Logoff for the Everyone user group was implemented.

Keywords: kbregistry kbbug kbfix kbhotfixserver kbqfe KB893368

-

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

© Microsoft Corporation. All rights reserved.