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. #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
Cancellation of shrink volume in Vista
Dear all I have a HP notebook with Windows Vista (Home Premium, 32 bit) Operating System. The capacity of its hard drive is 160Gb and its free...
General Discussion
Need help to run a logoff and/or shutdown script please.
Hi, I am running Vista Home Premium x64 and I would really like to run a logoff and/or shutdown script. Do you have a way to do it? I know it's...
General Discussion
vbs with conditions
Hello there, I need to create a vbs script that will do the following: Will check if certain application is installed, by checking if the...
VB Script
Random Memory Errors at Logoff (and ONLY Logoff)
I hope I've posted this in the correct place and I'm sorry if I didn't but I did search the forums to see if my questions had been answered and I...
General Discussion
upgrade cancellation
Vista upgrade was cancelled "Windows could not update the computer's boot configuration." Installation cannot proceed. What's next? Thanks. --...
Vista installation & setup
echo cancellation
I have a an echo with the built in webcam. I have unchecked the box in the setup and it still continues. Any suggestions?
Vista General
Can not view html with script dialog box
Starting a week ago, I can no more see html dialog box in windows vista ultimate 32 bit. The windows sidebar does not show correctly, I can see...
Vista General