"Henninger5" <ffrugone@newsgroup> wrote in message
news:3810abd1-caf2-4a7e-b598-aabfc7c8d61c@newsgroup
> Platform: Windows XP SP3, domain workstation.
>
> I need a script that:
>
> 1. Checks the username of the logged on user.
> - If the user is one of two specific users, it logs them off
> immediately.
> - If the user is not one of two specific users, proceed to step 2.
> 2. Display a dialog box with a timer ticking down the seconds from 20
> minutes. Also in the dialog box, show the caption, "Unless the
> countdown is cancelled, the user will be automatically logged off." At
> the bottom of the dialog box, show a button that reads "Cancel
> Logoff".
> - If the button is clicked, the dialog box disappears and the
> countdown is cancelled.
> - If the timer counts all the way down, the user is immediately logged
> off.
>
> Can someone please help me? Thank you. I recommend you download the helpfile script56.chm from the Microsoft site,
then use it to put together a framework that meets most of your
requirements. You then post your code and ask for assistance on some of the
finer details.