Stop Computer From Automatically Rebooting Overnight

1,152

Solution 1

In Group Policy you can do something like that

To start group policy editor : Start / Run / gpedit.msc

Then / Computer Configuration / Administrative Templates / Windows Components / Windows Update

under there is a option like "No auto-restart with logged on users for scheduled automatic updates installations"

if not, you can set it to Enable. So it will inform you with tiny pop-up about restart but do nothing until you click it.

Solution 2

My answer will depend on a couple of things

  • Are you on a network that sets policies.
  • Are you an do you have administrator rights to this computer.

If the Answers were in the order of "No" and then "Yes", the following fix might help you.

  1. Type "gpedit.msc" in the search box in the start menu
  2. In the window that shows, select "Administrator Templates" under "Computer Configuration"
  3. Expand "Windows Components" and find "Windows Update"
  4. Edit the "No auto-restart..." option

For more information see http://support.microsoft.com/kb/328010

Solution 3

Go to Windows Update / Change Settings, you're probably set at the default action of Install updates automatically. Change that to one of the other settings and it will resolve your problem.

Solution 4

Set Windows Update to download but not install updates until you tell it to.

Share:
1,152

Related videos on Youtube

David Burson
Author by

David Burson

Updated on September 17, 2022

Comments

  • David Burson
    David Burson almost 2 years

    I downloaded Qt 5.2.1 (the .tar.gz) on my Macbook running OS X 10.8.5 with xcode 5.0.2, unzipped, and ran this configure:

    ./configure -prefix $PWD/qtbase -debug-and-release -developer-build -no-c++11 -opensource -plugin-sql-sqlite -qtlibinfix _fmosoft -nomake tests -skip qtwebkit -skip qtwebkit-examples -no-compile-examples
    

    I have a few patches to add to Qt5.2.1, so I can't just install the binaries. But I thought I'd first try to build without any patches, just using the unzipped code with my configuration options. Configure succeeds, then I run

    make
    

    That runs for about 5 minutes, then gives me this error:

    ../corelib/global/qt_pch.h:58:10: error: 'qglobal.h' file not found with
          <angled> include; use "quotes" instead
    #include <qglobal.h>
             ^~~~~~~~~~~
             "qglobal.h"
    ../corelib/global/qt_pch.h:64:10: fatal error: 'qcoreapplication.h' file not
          found
    #include <qcoreapplication.h>
             ^
    2 errors generated.
    make[4]: *** [.pch/debug/QtNetwork_fmosoft_debug/c++.pch] Error 1
    make[3]: *** [debug-all] Error 2
    make[2]: *** [sub-network-make_first] Error 2
    make[1]: *** [sub-src-make_first] Error 2
    make: *** [module-qtbase-make_first] Error 2
    

    What am I doing wrong? How do I build Qt5.2.1 on my Macbook?

  • Taptronic
    Taptronic over 13 years
    I am hoping this is it. I just made the change. Wont know until it happens again next month and that is IF there is a security update.
  • Svish
    Svish over 13 years
    Yeah, I like to go through the list of new updates and click that Install Updates button myself. Always install everything, but like to know what's coming in and to do it when I want to.
  • rakslice
    rakslice over 11 years
    Note that "Windows Components" is under "Administrative Templates"
  • David Burson
    David Burson over 10 years
    Thanks - I was trying a non-prefix build, and that's what I found in Qt's documentation to put for -prefix (I forget where I saw it). To see if it made a difference, I tried a normal prefix build as you suggested, but I got the same error as my original question. Any more ideas what could be wrong?
  • Kuba hasn't forgotten Monica
    Kuba hasn't forgotten Monica over 10 years
    @DavidBurson It's probably an OS X 10.8-specific bug. You may wish to report it.
  • David Burson
    David Burson over 10 years
    it appears to be a bug with -qtlibinfix. By eliminating that flag I got past it. Still fails with another error though: /Users/david/dev/qt521source/qtbase/examples/widgets/mac/qma‌​cnativewidget/main.m‌​m:44:10: fatal error: 'QApplication' file not found #include <QApplication>
  • Kuba hasn't forgotten Monica
    Kuba hasn't forgotten Monica over 10 years
    @DavidBurson The error you give is in the examples. -no-compile-examples seems to be a no-op, use -nomake examples instead.
  • Kuba hasn't forgotten Monica
    Kuba hasn't forgotten Monica over 10 years
    @DavidBurson I think part of your problem is adding a lot of custom options without succeeding with the defaults first. There's really no good reason for -qtlibinfix for example, since you're not installing Qt globally anyway, and you won't ever be (unless you work for Apple and they intend to ship Qt as part of OS X). It's sort-of useless. You may wish to check if there are any tests for it in the test suite: my hunch is that there are none, thus the buildbots never exercise it.
  • David Burson
    David Burson over 10 years
    thanks! You're right, I removed -qtlibinfix and -no-compile-examples and it has been building for several hours with this: ./configure -prefix $PWD/qtbase -debug-and-release -developer-build -no-c++11 -opensource -plugin-sql-sqlite -nomake tests -confirm-license