We are running remote desktop services on Windows Server 2008 R2.
I would like to log the external (WAN) IP address of clients that are connecting to the server, each time a user connects. Currently I am using the GETTSCIP tool from CTRL-ALT-DEL, as part of the user login scripts, and appending the IP address results to a text file for each user (%username%iplog.txt). The trouble is it's logging the users NAT address instead of the WAN address, rendering my tracking mostly useless.
I have searched the web for an application, or simple script function, that would help me accomplish this. Unfortunately I find the same reference to the GETTSCIP tool, or to Visual Basic scripts that are quite a bit above my comfort level. My current login script is effectively the same as an old DOS batch file, with NET USE commands, and so forth.
Can anyone suggest a tool, script, or even eventlog feature that would help me collect this date? I'd certainly appreciate any suggestions or guidance you have to offer.