Solved

how to schedule a forced reboot

Posted on 2013-06-23
5
382 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

740 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