Solved

how to schedule a forced reboot

Posted on 2013-06-23
5
380 Views
Last Modified: 2013-06-25
I want to schedule a forced unattended reboot. The problem is that if the user has some applications opened up, it prompts the user indefinitely to end the program

I use the following commandline in  a bat file

shutdown -r -t 0
0
Comment
Question by:solarisinfosys
5 Comments
 
LVL 5

Assisted Solution

by:Eddie-Lopez
Eddie-Lopez earned 250 total points
ID: 39269918
Hi,

You should add the force (-f) parameter, see here for more info:

http://www.computerhope.com/shutdown.htm
0
 
LVL 5

Accepted Solution

by:
d_nedelchev earned 250 total points
ID: 39269919
Just add the -f switch. "Forces running applications to close without warning" as described in the "Usage" of the shutdown.exe /? command.


shutdown.exe -r -f -t 0

Open in new window

0
 
LVL 27

Expert Comment

by:Jason Watkins
ID: 39269974
I would also remind the user(s) this is going to occur and that they should save and close their work before leaving for the day. Forcibly rebooting a user's desktop or session could result in lost data, which can present an even bigger problem.
0
 
LVL 23

Expert Comment

by:Danny Child
ID: 39273383
I've always found psshutdown to be a better (free!) alternative to shutdown.exe

http://network-shutdown.com/using-psshutdown-and-shutdown-commands
0
 

Author Closing Comment

by:solarisinfosys
ID: 39273887
Thanks for the answer. the -f option worked perfectly
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question