Windows Vista Forums

I need a logoff script (with conditions and cancellation dialog box)

  1. #1


    Henninger5 Guest

    I need a logoff script (with conditions and cancellation dialog box)

    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.

      My System SpecsSystem Spec

  2.   


  3. #2


    Pegasus [MVP] Guest

    Re: I need a logoff script (with conditions and cancellation dialog box)



    "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.


      My System SpecsSystem Spec


I need a logoff script (with conditions and cancellation dialog box)
Similar Threads
Thread Forum
vbs with conditions VB Script
Random Memory Errors at Logoff (and ONLY Logoff) General Discussion
upgrade cancellation Vista installation & setup
echo cancellation Vista General
Can not view html with script dialog box Vista General