bsharath
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
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
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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.