Solved

how to schedule a forced reboot

Posted on 2013-06-23
5
378 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:DanCh99
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now