views:

353

answers:

2

Hi.

How to find what all users have logged on my windows server 2003. What is the property/setting/service that should be enabled to log all the logons to my server. Is there a way to display an alert mail or message (a script or something) whenever a user logs on.

Many thanks :)

A: 

If you're working with Active Directory, you can implement an audit policy through GPO.

fretje
+1  A: 

Go to Administrative tools -> Local Security Settings -> Local Policies -> Audit Policy, and on the right pane set the events you'd like to have logged in the event viewer.

As for sending an email or message upon login - you can create a batch file that will do that, and add a shortcut to the programs->startup folder. This will cause the batch to run whenever a user logs in (though not when a user connects to a disconnected session). As for sending an email, there are plenty of free command line emailers on the web, just pick one up. Or, you can NET SEND yourself a message.

Lastly, you'd probably get better answers than these on serverfault.com, where more sysadmins would hang out.

eran
I think I will take one command line emailer. :-)