Announcement

Collapse
No announcement yet.

How to log user connection through TS.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to log user connection through TS.

    We just enable TS for admin. How can I know when the user logon? For vnc, it can have event log when ther user ever connected the server. Thanks.

  • #2
    Re: How to log user connection through TS.

    1. http://technet.microsoft.com/en-us/l.../cc787567.aspx

    2. And a nice logging solution from Mr. Wai Ho Wu (MVP):


    http://msmvps.com/blogs/richardwu/ar...gon-event.aspx
    Best Regards,

    Yuval Sinay

    LinkedIn: https://www.linkedin.com/in/yuval14, Blog: http://blogs.microsoft.co.il/blogs/yuval14

    Comment


    • #3
      Re: How to log user connection through TS.

      Side Note -

      If you have a decent amount of users you can change the script slightly to save via the username.

      ------logon.cmd----
      echo logon %username% %computername% %date% %time% >> \\dc1\share\logon.log
      echo logon %username% %computername% %date% %time% >> \\dc1\share\%username%.log


      -----logoff.cmd-----
      echo logoff %username% %computername% %date% %time% >> \\dc1\share\logoff.log
      echo logoff %username% %computername% %date% %time% >> \\dc1\share\%username%.log

      -----

      I do not have alot of users, but with 20 users it gets combersome to look at one log and have to find the adjacent logoff in the second log. I run both logs (login.log and %username%.log) just to make things easier for me.

      A limitation to this logging is:
      If a user disconnects the last event does not trigger until your timeout occurs and it kicks them off. IE: If I D/C now and you have it set to keep sessions for 30 minutes it will show I stayed connected until 30 minutes from now in the log.

      Hobie

      Comment

      Working...
      X