Link to home
Create AccountLog in
Avatar of bsharath
bsharathFlag for India

asked on

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
Avatar of harris_c
harris_c
Flag of Philippines image

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.

ASKER CERTIFIED SOLUTION
Avatar of harris_c
harris_c
Flag of Philippines image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer