Want to create a logon script with all the Mstsc sessions a machine does.

Posted on 2007-10-01
Last Modified: 2012-08-13
I need a logon script with the machine name as the file name in a shared folder.Which keeps a record of all Mstsc logins to that file.
If Machine1 log's in to machine2 then a file with Machine2 has to be created and content in the file has to be stored like
"Machine 1 accessed machine 2 on date and time with this username"

Any way to get this done...

Question by:bsharath
    LVL 8

    Expert Comment

    You could:

    1.  Rename mstsc.exe.
    2.  Create your own mstsc.exe written in perl.  here you can do the logon logs.
    3.  Run mstsc.


    1.  Access Event Viewer: Security.  Look at the Logon/Logoff with Logon Type = 7.

    LVL 8

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
    There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
    The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

    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

    13 Experts available now in Live!

    Get 1:1 Help Now