You can use a logon script to dump out the connecting user with the following script in the \windows\system32 directory.
Create a batch file with this line:
echo %username% %clientname% %date% %time% >> C:\TermServLog\logon.log
And enter the name of the batch file into the registry entry as follows:
Run Regedt32.exe and go to the following value: HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion
\Winlogon\Appsetup
After the last entry in the Appsetup value, place a comma and a space and then enter the name and extension of the logon script you placed in the %SystemRoot%\System32 folder. For example, if the value of Appsetup is: Usrlogon.cmd, Rmvlinks.exeAfter adding an entry for Termlogon.cmd, the value would look like: Usrlogon.cmd, Rmvlinks.exe, Termlogon.cmdTermlogon.cmd will now run every time a user logs into the Terminal Server.