We help IT Professionals succeed at work.

script to log rdp connection information

Medium Priority
524 Views
Last Modified: 2012-08-13
when someone connects via rdp to the server, you can view more information about the user in terminal

what i am looking for is basically a start up script, that dumps this information into a text file on the computer somewhere so i can look it up later on.

thanks
Comment
Watch Question

Consultant/Trainer
Commented:
Hi!

This is one solution, but is not free: http://www.terminalserviceslog.com/

You could specify logon (not startup) script only for terminal services users:

"How to Set Up a Logon Script Only for Terminal Server Users"
http://support.microsoft.com/kb/195461

Script should contain at least the following line:

echo %username%,%computername%,%date%,%time% >> C:\logs\TSlog.txt

HTH

Toni

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
thanks

Author

Commented:
crap sorry this only prints out the computer name of the computer they are connecting to, not the one they are connecting from.
Toni UranjekConsultant/Trainer

Commented:

echo %username%,%clientname%,%date%,%time% >> C:\logs\TSlog.txt

Open in new window

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.