1, the establishment of a deposit log and monitoring program directory, such as a RDP directory in the disk C
2, in its directory to create a named RDPlog. TXT text file
3, in its directory to create a named RDPlog. Bat batch file, content is:
The date/t & gt;> RDPlog. TXT
Time/t & gt;> RDPlog. TXT
Netstat - n - p TCP | find ": 3389" & gt;> RDPlog. TXT
Start Explorer
4, enter "terminal server configuration" in the system management tools, enter the default RDP - Tcp attribute
On page 5, switch to the "environment", enable "enabled when a user logs in the following procedure"
6, in the program path and file name to fill in: C: \ RDP \ rdplog bat; And began to fill in: C: \ RDP \
After completion of the above configuration steps when login server again and the time will record the current login IP,
But each time you log in there will be a black DOS window a flash, very uncomfortable, how to get rid of it?
1, still in the original directory to create a new named RDPLog. VBS script file, the content is as follows:
Set the shell=Wscript. Createobject (" Wscript. Shell ")
Call the shell. The run (" C: \ RDP \ RDPLog bat "0)
2, into the "terminal server configuration" in the system management tools, enter the default RDP - Tcp attribute
On page 3, switch to the "environment", enable "enabled when a user logs in the following procedure"
4, in the program path and file name to fill out: wscript C: \ RDP \ RDPLog VBS. And began to fill in: C: \ RDP \
In addition to remind you: if you want to log in every time record access time and IP, every time it withdrew from the remote desktop must select "logout" user exit

WIN2003 system login records of the remote desktop connection log method