• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 881
  • Last Modified:

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

Hi,
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.
Say.
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...

Regards
Sharath
0
bsharath
Asked:
bsharath
  • 2
1 Solution
 
harris_cCommented:
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.

OR

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

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now