Prevent shutdown when not initiated by user

Page 1 of 2 12 LastLast

  1. Posts : 6
    WinNT 6.1 Pro x64 Build 7601
       #1

    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:
    https://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 Computer


  2. Posts : 13,576
    Windows 10 Pro x64
       #2

    Explain please:

    A shutdown of just a program ?

    or a shutdown of the machine itself ?
      My Computer


  3. Posts : 6
    WinNT 6.1 Pro x64 Build 7601
    Thread Starter
       #3

    A system shutdown.
      My Computer


  4. Posts : 13,576
    Windows 10 Pro x64
       #4

    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 Computer


  5. Posts : 6
    WinNT 6.1 Pro x64 Build 7601
    Thread Starter
       #5

    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 Computer


  6. Posts : 13,576
    Windows 10 Pro x64
       #6

    Please answer questions 2 3 and 4 Thank You :)
      My Computer


  7. Posts : 6
    WinNT 6.1 Pro x64 Build 7601
    Thread Starter
       #7

    AddRAM said:
    So you want the machine on 24/7 and no way for it to shut down, but only by you ?
    Yes.
    AddRAM said:
    Where is this pc kept ?
    With me. All the time.
    AddRAM said:
    Who owns it ?
    Me.
    AddRAM said:
    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 Computer


  8. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #8

    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 Computer


  9. Posts : 6
    WinNT 6.1 Pro x64 Build 7601
    Thread Starter
       #9

    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 Computer


  10. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #10

    I don't know.
    That's a good question, you could ask in the tutorial.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 00:12.
Find Us