Terminal Services Logging

J

John B

Is there a way to setup a log, that will log who logs on and off a server
using Terminal Services? Thanks.

John
 
R

Rahisuddin Shah

Hi, Try this below

Step 1: Create the following two files using Notepad :

---logon.cmd---
echo logon %username% %computername% %date% %time% >>
\\servername\share\logon.log

---logoff.cmd---
echo logoff %username% %computername% %date% %time% >>
\\servername\share\logon.log

Step 2: Update Group Policy to run the appropriate batch file. In Group
Policy, go to:
User Configuration-> Windows Settings-> Scripts (Logon/Logoff)-> Logon


Step 3: As users log on and off, your log file should look something like
this:

logon John PC1 Mon 22/02/2005 10:39:51.12
logoff John PC1 Mon 22/02/2005 10:41:08.45
logon Donnie PC2 Mon 22/02/2005 10:42:01.07
logoff Donnie PC2 Mon 22/02/2005 10:42:46.81
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top