Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Does anyone know of a utility that will allow a user to postpone a reboot on their PC to safely save their work?

I came across something today called "Safe Reboot" and it displayed a message saying your IT Administrator would like to reboot your computer and it will count the time in seconds. The user had an option to extend the time by 3 minutes.

I am having trouble finding the name of the utility using Google.

share|improve this question
    
You can do this with SysInternal's psshutdown utility. See also: serverfault.com/questions/137592/… –  jscott Mar 1 '12 at 1:41
    
Why is there computer arbitrarily rebooting in the first place? –  Zoredache Mar 1 '12 at 2:34
    
My guess would be do to patching. –  aduljr Mar 1 '12 at 2:48
    
If this reboot is being triggered by updates, wouldn't it make more sense to use more appropriate update settings? –  John Gardeniers Mar 1 '12 at 3:33

1 Answer 1

Open a command prompt (windows+R and enter "cmd" in the run box as an administrator or power user) and enter:

Shutdown -a

This will "abort" an automated or scheduled shutdown or reboot.

Below is the full syntax for the shutdown command:

Syntax

shutdown [{-l|-s|-r|-a}] [-f] [-m [\ComputerName]] [-t xx] [-c "message"] [-d[u][p]:xx:yy]

Parameters -l : Logs off the current user, this is also the defualt. -m ComputerName takes precedence.

-s : Shuts down the local computer.

-r : Reboots after shutdown.

-a : Aborts shutdown. Ignores other parameters, except -l and ComputerName. You can only use -a during the time-out period.

-f : Forces running applications to close.

-m [\ComputerName] : Specifies the computer that you want to shut down.

-t xx : Sets the timer for system shutdown in xx seconds. The default is 20 seconds.

-c "message" : Specifies a message to be displayed in the Message area of the System Shutdown window. You can use a maximum of 127 characters. You must enclose the message in quotation marks.

-d [u][p]:xx:yy : Lists the reason code for the shutdown. The following table lists the different values.

Value Description u Indicates a user code. p Indicates a planned shutdown code. xx Specifies the major reason code (0-255). yy Specifies the minor reason code (0-65536). /? : Displays help at the command prompt.

share|improve this answer
    
Hmm, not exactly user friendly, I don't know of many users who could manage this easily –  Mark Henderson Mar 1 '12 at 2:59
    
Sorry, @Mark Still getting used to the mini-markdowns! The admin or user could Open Notepad and enter "shutdown -a" then Save-as filename "AbortShutdown.cmd" and choose file type "all files" from the dropdown. –  G Koe Mar 1 '12 at 3:47

Your Answer

 
discard

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.