Solved

how to schedule a forced reboot

Posted on 2013-06-23
5
383 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Creating an XP virtual machine 38 186
Blocking of USB Port 18 124
Windows XP on Acer Aspire One 49 225
XP as a dual boot with Windows 10 10 114
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…
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

751 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