Windows 10: Stop automatic reboots w/updates + auto-install Defender definitions

Discus and support Stop automatic reboots w/updates + auto-install Defender definitions in Windows 10 Updates and Activation to solve the problem; Hello: My goal is to prevent Windows 10 from rebooting whenever it wants to. It happened twice already that I got my computer in the morning in a... Discussion in 'Windows 10 Updates and Activation' started by ahmd, Jan 29, 2017.

  1. ahmd Win User

    Stop automatic reboots w/updates + auto-install Defender definitions


    Hello:

    My goal is to prevent Windows 10 from rebooting whenever it wants to. It happened twice already that I got my computer in the morning in a refreshly rebooted state. I didn't lose any data, but it then takes me several minutes to reload all the apps etc. In other words it's a big pain-in-the-a$% so my goal is to revert updates to how they used to work in Windows 7, i.e. "I own the computer and I decide when to reboot!"

    So I ran gpedit.msc as an admin and then went to
    Local Computer Policy -> Computer Configuration -> Admin Templates -> .... (can't remember the full path) ... eventually to Configure automatic updates and set it to "Auto download and notify for install." I then also enabled the local GPO to "No auto-restart with logged on users for scheduled automatic updates" Here's the full setup:

    Stop automatic reboots w/updates + auto-install Defender definitions [​IMG]

    And here's that specific setting:


    Stop automatic reboots w/updates + auto-install Defender definitions [​IMG]

    After that these GPOs seem to have held off automatic reboots, but now I got one less pesky but still annoying thing. Every day this thing dings me with a popup:


    Stop automatic reboots w/updates + auto-install Defender definitions [​IMG]

    which then brings me to this:


    Stop automatic reboots w/updates + auto-install Defender definitions [​IMG]


    So I was wondering, is there a way to automate installation of those definitions for Windows Defender so that I don't have to do it manually every day?

    PS. I tried setting the following as a daily task in the Task Scheduler, and although it used to work in Windows 8.1, in Windows 10 it doesn't seem to do anything and I still get those dings:


    Code: "C:\Program Files\Windows Defender\MpCmdRun.exe" -SignatureUpdate[/quote]

    :)
     

  2. Defender - Update Automatically

    Don't hold your breath. Unlike MSE (and Defender) in Win7, Defender in Win10 (as well as Win8.1) will ONLY auto-update itself when Windows Update is set to the default Automatic configuration.

    If you wanna leave it set to Notify Only, you'll have to update Defender manually.

    Like MSE, Defender considers itself sufficiently up-to-date as long as its Definitions are
    no more than 72 hours old.
     
    PA Bear - MS MVP, Jan 29, 2017
    #2
  3. Is there any way to shut off automatic updates in Windows 10

    Fact: If Windows Update (i.e., automatic updating) is disabled (turned off), Windows Defender will NOT auto-update its Definitions every day (or even once-a-week).
     
    PA Bear - MS MVP, Jan 29, 2017
    #3
  4. dalchina New Member

    Stop automatic reboots w/updates + auto-install Defender definitions

    Please see
    Scheduled Defender Definition Updates Not Completing After AU


    Stop automatic reboots w/updates + auto-install Defender definitions [​IMG]

    is a convenient way to set Windows to notify.

    And presumably you are aware of the (limited) active hours feature in settings (12 hour period max) to restrict restarts.

    I've never experienced an unexpected restart, even when one is pending outside active hours, curiously.
     
    dalchina, Jan 29, 2017
    #4
  5. ahmd Win User
    Well, it warns me. I just don't want to do it whenever Microsoft decides to. Like I said it takes too long to reload everything. I usually reboot it once a month or so, or if some critical patch is out.

    From that link that you posted, just curious, how is:

    "%ProgramFiles%\Windows Defender\MpCmdRun.exe" -SignatureUpdate

    different from:

    "C:\Program Files\Windows Defender\MpCmdRun.exe" -SignatureUpdate

    that I've been using?
     
  6. dalchina New Member
    Further discussion:
    Scheduling silent hourly Windows Defender definition updates using Task Scheduler on Windows 8 - Super User
    - plenty on the web on this if you search.

    In particular if you want a completely silent update (no window):
    Update Windows Defender when Automatic Updates is disabled

    (or %programfiles% as necessary)
     
    dalchina, Jan 29, 2017
    #6
  7. ahmd Win User
    Thanks. Like I said what worked in Windows 8.1 doesn't seem to work with Windows 10.

    I haven't seen this though, so I'll try:

    Code: "C:\Program Files\Windows Defender\MSASCui.exe" -Update -Hide[/quote] It seems to start a GUI version of the Defender and update it (without -Hide). Unfortunately it doesn't close it (even with -Hide supplied.) Pretty stupid, IMHO. But at least it's better than nothing. So I'll try that and will post a report later...
     
  8. Stop automatic reboots w/updates + auto-install Defender definitions

    The following VBScript is run at 6-hours intervals via Task Scheduler on my Windows 10.
    Code: Createobject("wscript.shell").run("""C:\Program Files\Windows Defender\MpCmdRun.exe"" ""-SignatureUpdate"""), 0[/quote] It runs silently in the background with no momentary GUI and command window.
     
    Matthew Wai, Jan 30, 2017
    #8
  9. swarfega Win User
    To stop the notifications popping up, you could use quiet mode. Click on the action centre icon next to the clock and click on quiet hours. This should stop notifications appearing.
     
    swarfega, Jan 30, 2017
    #9
  10. ahmd Win User
    @swarfega I'm not trying to kill notifications. I was just trying to make that thing install definitions automatically. Is it too much to ask? And so far I did not succeed.

    @Matthew Wai That is exactly what I was doing before (well, just as a command itself) and it didn't work. Works on 8.1 but not on Win10.

    Also want to report that the following doesn't do anything either:

    Code: "C:\Program Files\Windows Defender\MSASCui.exe" -Update -Hide[/quote] Got another one of those dings this evening.

    Any more ideas, guys?
     
  11. Is there a reason why it works on my Windows 10 but not on yours?
    Does it work on other members'?
     
    Matthew Wai, Jan 30, 2017
    #11
  12. Try using VBScript to call a .cmd file containing the following command: Code: "C:\Program Files\Windows Defender\MpCmdRun.exe" "-SignatureUpdate"[/quote] It will run silently in the background with no momentary GUI and command window.
     
    Matthew Wai, Jan 30, 2017
    #12
  13. ahmd Win User

    Stop automatic reboots w/updates + auto-install Defender definitions

    Guys, I think I got it. It's been working for a few days now (so I'm keeping my fingers crossed.)

    The problem might have been in the Task Scheduler (or my inability to fully grasp its convoluted interface) and not in the command line I was using.

    So here are the steps that worked for me:

    1. Set up GPOs (need Windows 10 Pro): run gpedit.msc as administrator, then go to Local Computer Policy -> Computer Configuration -> Admin Templates -> Windows Components -> Windows Update and set the following:

    - "Configure automatic updates" set to enabled, pick option "3 - Auto download and notify for install"
    - "No auto-restart with logged on users for scheduled automatic updates installations" set to enabled.

    Then reboot.

    2. I found this free tool that will do the scheduling part. (Note that the tool is designed to wake your computer from sleep. Since in my case it's a desktop and it is always on the waking part was not an issue. But if you do it for a laptop I would set the interval for longer than an hour, say to 4 hrs or so that your laptop doesn't wake up every hour in the bag.)

    I then set up the schedule as such with the following command line arguments from a cmd window:

    Code: path-to\wosb.exe /run /systray tm="+10:00" file="path-to\cmdNoWnd.exe" params="\"%ProgramFiles%\Windows Defender\MpCmdRun.exe\" -SignatureUpdate" repeat="1:00:00"[/quote]

    What it does it runs my update Defender command (MpCmdRun.exe -SignatureUpdate part) without a window (cmdNoWnd.exe part) 10 minutes after I run the line above and then repeats it every hour (repeat="1:00:00" part.)

    3. And since I was at it, the line above calls another free tool (cmdNoWnd) from the same site that runs my Defender command without showing the command window. Very handy and no need to do the VB script hack as was suggested above.
     
  14. Is it necessary to wake it up to perform definition updates, which don't seem urgent?

    I prefer the above, which entails no installation, to the following, which needs to be installed.
     
    Matthew Wai, Feb 8, 2017
    #14
  15. ahmd Win User
    I don't think there's any installation needed. It's just a file you can run.

    But otherwise, yes of course. I'm sure there's more than one way to do it.
     
Thema:

Stop automatic reboots w/updates + auto-install Defender definitions

Loading...
  1. Stop automatic reboots w/updates + auto-install Defender definitions - Similar Threads - Stop automatic reboots

  2. Definition update could not be installed Definition update for Windows Defender Antivirus

    in Windows 10 Installation and Upgrade
    Definition update could not be installed Definition update for Windows Defender Antivirus: Error installing - 0x8024000b My PC is up to date. Dell Inspiron 24-5459, Intel Core i7-6700T CPU at 2.80 GHz, 12 GB of RAM, 64 bits. Windows 10 home, version 1903 Let me know why it failed and if this update is necessary. If necessary, how to fix the error and install it....
  3. windows defender definition update failed to install

    in Windows 10 Installation and Upgrade
    windows defender definition update failed to install: windows defender definition update failed to install error 0x80240017 https://answers.microsoft.com/en-us/windows/forum/all/windows-defender-definition-update-failed-to/7def191d-6c16-4c4f-bc87-773c82d5adbd
  4. W-lan Auto Config automatically stops causing network issues

    in Windows 10 Network and Sharing
    W-lan Auto Config automatically stops causing network issues: Laptop is HP Probook 450 G5 8th Gen with Realtek RTL8821CE(1x1) wireless card issue is that sometimes wifi gets limited and needs to be reset i have tried every thing like latest drivers for graphic cards(for wireless mirroring as its also having issues because of...
  5. Windows Defender stopped scanning / updating virus definitions

    in AntiVirus, Firewalls and System Security
    Windows Defender stopped scanning / updating virus definitions: Hello everybody, My Windows Defender stopped scanning / updating virus definitions, I've had to do these things manually since the Win 10 April 2018 upgrade. Re-installed the whole Win 10, didn't fix the problem. Today I completed the Win 10 October 2018 upgrade....
  6. definition updates for defender

    in AntiVirus, Firewalls and System Security
    definition updates for defender: i have had 8 of these in one day was wondering if something is wrong 121010
  7. definition updates for defender

    in Windows 10 Support
    definition updates for defender: i have had 8 of these in one day was wondering if something is wrong 121010
  8. Updating Defender Definitions.

    in AntiVirus, Firewalls and System Security
    Updating Defender Definitions.: can't update the definition https://answers.microsoft.com/en-us/protect/forum/protect_defender-protect_updating-windows_10/updating-defender-definitions/01d2f8f4-51bd-48f3-b7d7-03f00f5c959d
  9. Windows Defender Definition Update

    in AntiVirus, Firewalls and System Security
    Windows Defender Definition Update: I have disabled Windows Defender in Windows 10, but the Windows Defender Definition Updates are still being downloaded and installed, these updates are wasting my hard disk space. Are there ways to stop downloading of these updates. 16433
  10. How to stop Updates of Windows Defender Definition

    in Windows 10 Updates and Activation
    How to stop Updates of Windows Defender Definition: I have disabled Window Defender, but the Updates of Windows Defender Definition are still downloaded and installed. How do I stop it? I tried to use the Show or Hide updates to hide the Update of Windows Defender Definition, but it did not appear there. 19152