Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Prevent shutdown when not initiated by user

02 Mar 2015   #1
brunoais

WinNT 6.1 Pro x64 Build 7601
 
 
Prevent shutdown when not initiated by user

How do I do to prevent a shutdown from being initiated by means that was not my own action?

I have already had multiple issues with programs that work with DB's on my computer (including my own) that become partly corrupted from being given the order to shutdown and then the process is killed (those 2, just being killed is no issue as they are ready to recover).

Some programs seem to have made thinking they are in a sandbox of some sort where they initiate the shutdown sequence without me confirming it. It annoys me.

How do I do so that I can give the order to windows to consider all shutdown orders as unauthorized or not allowed unless they come from me, by my own actions?
I have already tried what appears in the first 3 pages of results of this search:
http://www.sevenforums.com/gtsearch....2383j544421j16
Nothing helps. The closest one is shutdownguard... but it only prevents itself from closing, not the computer, not to mention it doesn't prevent a forced shutdown sequence which seem to be the norm for these programs.


My System SpecsSystem Spec
.
02 Mar 2015   #2
AddRAM

Windows 7 Pro x64 Windows 10 Pro x64
 
 

Explain please:

A shutdown of just a program ?

or a shutdown of the machine itself ?
My System SpecsSystem Spec
02 Mar 2015   #3
brunoais

WinNT 6.1 Pro x64 Build 7601
 
 

A system shutdown.
My System SpecsSystem Spec
.

02 Mar 2015   #4
AddRAM

Windows 7 Pro x64 Windows 10 Pro x64
 
 

So you want the machine on 24/7 and no way for it to shut down, but only by you ?

Where is this pc kept ?

Who owns it ?

And who would possibly would shut it down ?
My System SpecsSystem Spec
02 Mar 2015   #5
brunoais

WinNT 6.1 Pro x64 Build 7601
 
 

Yes.
All else cannot initiate a shutdown sequence.
I accept solutions that include Batch or .net scripts (possibly also require administration permissions) to get that result.

(Extra info)
If no other can initiate a system shutdown sequence, the programs are prepared for the other ways the system can get an unexpected shutdown.
My System SpecsSystem Spec
02 Mar 2015   #6
AddRAM

Windows 7 Pro x64 Windows 10 Pro x64
 
 

Please answer questions 2 3 and 4 Thank You
My System SpecsSystem Spec
02 Mar 2015   #7
brunoais

WinNT 6.1 Pro x64 Build 7601
 
 

Quote   Quote: Originally Posted by AddRAM View Post
So you want the machine on 24/7 and no way for it to shut down, but only by you ?
Yes.
Quote   Quote: Originally Posted by AddRAM View Post
Where is this pc kept ?
With me. All the time.
Quote   Quote: Originally Posted by AddRAM View Post
Who owns it ?
Me.
Quote   Quote: Originally Posted by AddRAM View Post
And who would possibly would shut it down ?
More of a "what" than a "who".
The "what" is programs that "believe" they require an immediate shutdown of my system after updating (either automatically or manually).
I already solved the one with windows update.
My System SpecsSystem Spec
02 Mar 2015   #8
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Can all of the programs that do a shutdown be configured to not do a shutdown ?
If you can't prevent the programs from doing a shutdown,
After looking through Brink's tutorial I THINK YOU MIGHT be able to do what you want using Local Security Policy.
  • Create a PW protected administrator account that you will use as the ONLY account that can do a shutdown.
  • Remove all other users and groups from the ability to do a shutdown.
  • If your programs run using your userid, you would log into Windows with your current userid that will no longer have permission to do a shutdown.
  • You might need to setup a "shortcut/bat file" to do a shutdown that prompts for your new account PW that can do a shutdown.
I'm guessing on all this, but this is what i would try if i wanted to do what you want.

Here is the tutorial by Brink:
Shut Down Computer - Allow or Prevent Users and Groups

You can post questions in the tutorial to get advice from Brink, and include a link to this thread.
My System SpecsSystem Spec
02 Mar 2015   #9
brunoais

WinNT 6.1 Pro x64 Build 7601
 
 

Hum... That is not only the shutdown and restart, that's also for sleep and hibernate. Will my PC hibernate if it reaches a very low battery state that way?
My System SpecsSystem Spec
02 Mar 2015   #10
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

I don't know.
That's a good question, you could ask in the tutorial.
My System SpecsSystem Spec
Reply

 Prevent shutdown when not initiated by user




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Sidebar prevent computer shutdown!
After a fresh SP1 install (with all updates) i encounter this (quite common apparently..) which is the sidebar freezing during shutdown and altering its process. So far i couldn't fix this. Probably some will respond "just turn off that sh**" but no i have some nice (and clean) widget i wanna...
General Discussion
Installing rights to standard user or prevent an admin user something
I tried to google this and it seems neither is possible but I wanted to hear the truths from the horses mouth. I have a Win 7 Pro x64 computer with 2 users who boths needs to be able (this really is a must) install software on the computer but they can't have access to each other's private...
General Discussion
Prevent Shutdown ????????????????????
I have to do a lot of works on my PC. But my son also play games from another standard user account. So he always shutdown my PC and I loose all my works. So is there any way to prevent shutdown while other users are logged on.
General Discussion
prevent screen-shutdown when switching user.
Is there a way that i can prevent the computer from turning off the screen while switching user? My screen reacts really slow when it gets turned off, then on again by the computer, so its just turns black for ages.
General Discussion
Programming: How to prevent shutdown using VB?
Hello, sorry if i post in wrong thread. I'm in project to build an i-cafe software for my own i-cafe. I need the code to prevent windows 7 for shutdown if my application still running. My current code work fine in windows xp without any problem, but not in vista and 7. There are anyone here can...
General Discussion
Prevent Network Card shutdown on ethernet cable removal
I need to know if this is a Windows 7 issue... I am running software which is licensed through my network card ID. I have recently bought a new laptop, running Windows 7 for the first time. Unless there is a network cable plugged in, I have no access at all to my card and so the software does...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 16:23.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App