Logging users login/logout on a given terminal server

Posted on 2006-03-29
Last Modified: 2008-01-09
Are there any utility out there that can log the number of login/logout on a given terminal server each day or a given time interval?


Question by:antoniorusso
    LVL 18

    Accepted Solution

    See this previous Q:

    If you have enterprise edition you can do this with Resource Manager.  Otherwise you can use a simple VB script to log the data to a database or excel.  Scroll to the bottom of that previous Q to see the code I posted previously on how to log the data in Excel.  If you want it stored in a database there is a link posted near the top.

    Author Comment

    Will this work in Microsoft Terminal Server environment?

    LVL 18

    Expert Comment

    This is a script that is configured to run with Citrix... if that is not installed then this won't work.

    If it's just Terminal Services you can always just put a line in the logon script or put a batch file in the startup folder.  Here is a sample command:

    echo %username% %date% %time% LOGON >> C:\login.txt

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    NetScaler load balancer for Linux containers

    Get all the features you need to load balance your containerized microservices applications from NetSCaler CPX Express. Integrated with Google Kubernetes, Docker Swarm, and Apache Mesos container management systems.  Supported by Citrix. Free trial version. Deploy in minutes.

    After several days of searching and hunting for limited documentation, I wanted to share this guide to hopefully save someone the hassle of trying to figure this out on their own. I have tested this on Xendesktop 7.1 and PS 4.5 running simultaneous…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now