Solved

how to schedule a forced reboot

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

864 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

19 Experts available now in Live!

Get 1:1 Help Now