Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hello everybody I have windows server 2003 domain and windows xp workstation. it is necessary that at 6.00 pm on computer was displayed a window (Do you really want to shutdown a computer and Yes/no button).If user click Yes or еxpired 5 minutes computer shutdown, else user click No than appears after an hour window will display again.

share|improve this question
please don't crosspost to multiple sites. This is the correct site for this question per – Jeff Atwood May 1 '10 at 6:01

Have a look at Sysinternal's pssshutdown, in conjuction with the Windows at command you can create a daily scheduled task to perform this. The utility allows for customized message box, default time out and presents a window prompting the user to cancel or continue the shutdown.

Create a Group Policy with a Computer Logon script something like:

REM Schedule computer shutdown task using AT.

IF EXIST "%PROGRAMFILES%\PStools\psshutdown.exe" (
    REM Clear at tasks
    AT.EXE /delete /yes
    REM Schedule shutdown daily, repeat in case of user cancellation.
    AT.EXE %SHUTDOWNTIME% /EVERY:m,t,w,th,f,s,su "%PROGRAMFILES%\PStools\psshutdown.exe" -accepteula -c -f -k -t %TIMEOUT% -m "Nightly shutdown in progress.  Click CANCEL if you need to continue using this computer."

You will need to customize the path to psshutdown to match your environment.

share|improve this answer

You can use the at and shutdown.exe commands in a script to accomplish this.

share|improve this answer
There's no way for a user to easily cancel the shutdown. – Chris S Jun 16 '10 at 13:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.