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.

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

2 Answers

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.
SET SHUTDOWNTIME=22:00
SET TIMEOUT=600

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.

link|improve this answer
feedback

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

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

Your Answer

 
or
required, but never shown

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