Discussion Locked

Automatic shutdown

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have the NT resource kit and I want to use the Shutdown utility in the task scheduler. I scheduled the task weekly but it does not execute. Instead it prompts for user input after sending out a message to users that the server will be shutdown. Isthere a way so that there is no need for any user input? No prompts?

5 replies

by syscokid

I think you need

shutdown /y

to bypass the prompt.

Type

shutdown /?

at the command propmt to see the full syntax for the shutdown command.

by fgarber

Yes. This is the .cmd file we run every night.

rem @Echo off
*********************************************

:START
Echo Starting Shutdwn.cmd (Ver 1.0)...
Echo Starting Shutdwn.cmd (Ver 1.0)...>shutdwn.log

rem *************************************************************************************
rem * Shutdown of Server with a delay to allow time for the spooler service to stop. *
rem *************************************************************************************

c:\Shutdown.exe /L /R /C /T:300 /Y "Machine will shut down in 5 minutes!!!"
:EXIT

The /C tells it to kill all running tasks

This discussion is closed to new replies.