Re: Email on user login/unlock
- From: "Al Dunbar" <AlanDrub@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Aug 2008 14:35:24 -0600
<requeth@xxxxxxxxx> wrote in message
news:681c5cf8-20ee-4542-84f8-50a41ef4071d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hey,
I want to have a script fire off an email when a user logs in to one
of my servers, or when they unlock their session. I can do the email
part easy enough, but do any of you have ideas of how to identify when
someone does an interactive login and/or unlock?
I can do vbscript, batch, and I can figure out most other things. I
have a mixed windows 2000/2003 environment.
Your best bet to detect when someone logs in is to use a domain-wide logon
script.
Your only bet on the unlock is to run something as a service or perpetual
scheduled task on each workstation, however, I have no idea how that script
or program would be able to detect when the user unlocked the workstation.
Note that when the user enters their domain password to unlock the
workstation, that is strictly a local operation that does not do any
transaction with the domain controller.
How many users do you have. how often do you expect them to logon, and what
will you do when you receive these emails? A more common method for tracking
user logons (but not unlocks) is to have your logon script write info to a
logfile on a server giving the date, time, workstation, and user. You can
then examine that logfile at any time to get a picture of who has logged in
recently.
/Al
.
- References:
- Email on user login/unlock
- From: requeth@xxxxxxxxx
- Email on user login/unlock
- Prev by Date: Email on user login/unlock
- Next by Date: Script to copy files not in progress of being copied
- Previous by thread: Email on user login/unlock
- Next by thread: Script to copy files not in progress of being copied
- Index(es):
Relevant Pages
|