Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Re: Email on user login/unlock

Reply
Thread Tools Display Modes

Re: Email on user login/unlock

 
 
Al Dunbar
Guest
Posts: n/a

 
      08-26-2008

<> wrote in message
news:681c5cf8-20ee-4542-84f8-...
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Notification of User Login via RWW Curious Minds Windows Small Business Server 9 01-15-2009 05:18 AM
Unlock a Locked login script? Bjarne Duelund Windows Server 1 08-22-2008 11:12 AM
Unlock Computer Window and System Login Screen Greyed Out Bryan Smith Windows Server 1 10-03-2007 07:33 PM
Re: Email notifications upon user login Lanwench [MVP - Exchange] Windows Small Business Server 2 12-04-2006 11:12 PM
How to change user password via asp in Active directory & unlock user account Jonny Scripting 1 02-02-2004 09:11 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59