Force Shutdown, Restart and Sign out

Hi, I was wondering if it were possible to add the -f command to the Shutdown, Restart and Sign out options? 

 

For example:

Shutdown:  shutdown -s -f -t 00

Restart:  shutdown -r -f -t 00

Sign out (Log off):  shutdown -l -f

 

The reason I ask is because some of my background programs are still yet to be fully compatible with Windows 8 and give errors, which prevent Windows from shutting down.  The -f command remedies that.  I am not sure that works on your end with the coding and all, but I thought I would give it a shot.

 

Thanks. :D

4,414 views 8 replies
Reply #1 Top

This sounds like something we may be able to add as an advanced option.

Reply #2 Top

Please keep it optional. I don't want anything forcibly terminated.

Reply #3 Top

Quoting some1anywhere, reply 2
Please keep it optional. I don't want anything forcibly terminated.
End of some1anywhere's quote

It would be optional.

Reply #4 Top

When you shut down, restart, or sign out of your system everything is "forcibly" terminated.  This simply closes apps that might prevent Windows from shutting down properly.  Basically, any program that fails to close properly can throw out an "Application Error" dialog box at shutdown and hang up the system unless you close the dialog box or click "Shutdown Anyway" on the screen.  In my case, old customization apps (Avedesk and Cd Art Display) give errors at shutdown, for reasons beyond my software expertise. Otherwise, they work fine.  Also, any app, even system processes, might even cause this error from time to time.  The -f command, if I had to describe it, makes the shutdown command work more efficiently and worry free.  It is in every sense harmless to your system.

 

Here is some more info on the commands on shutdown:

http://pcsupport.about.com/od/commandlinereference/p/shutdown-command.htm

Reply #5 Top

You are mistaken. Everything is not forcibly terminated. Applications are sent a "System is shutting down so close yourself" signal. Applications can tell Windows "Hey I have unsaved data" and Windows gives those apps a certain number of seconds to close and delay shutdown/restart and even allows the user to cancel the Shutdown. Forced terminate of any program can cause loss of unsaved data or corruption.

Reply #6 Top

I see what you are saying... this option is probably not ideal or necessary for most.  The aforementioned programs are the only ones to prevent my system from shutting down, even before I started using the -f argument.  I only had to start using it in Windows 8; in Windows 7 they closed fine at shut down.  Using -f, from what I have learned, still gives programs the same time to run through the motions of shutting down. Unless what I read about it was false, which is entirely possible. But, like you mentioned, forces ones to close that are hung/busy, which is my problem.  I haven't experienced any data loss or corruption, but I see your point entirely.  Also, none of the programs I use have ever actively prevented Windows from shutting down before using Windows 8. But all of that is moot if it is somehow affecting the shutdown of a program just like forcibly closing one through the task manager would.  Please correct me if I am still understanding the effects of using this trigger.  I did make some recycle bin context menus to solve my problem, so all is good.  An optional item would be nice though... maybe in a separate advanced options popup window under the "Control" section.:)

 

 

 

Reply #7 Top

Nice icons for Restart, Shutdown. Where did you get them? :)

Reply #8 Top

They are in the ActionCenterCPL.dll... you would have to use a program like Resource Hacker to extract them. :)