Page 1 of 2 12 LastLast
  1.    30 Jan 2017 #1
    Join Date : Aug 2016
    Posts : 62
    Xp, Vista, 7, 8.1, 10

    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:
    Click image for larger version. 

Name:	Capture2.PNG 
Views:	20 
Size:	45.8 KB 
ID:	119088
    And here's that specific setting:

    Click image for larger version. 

Name:	Capture3.PNG 
Views:	20 
Size:	39.1 KB 
ID:	119091
    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:

    Click image for larger version. 

Name:	Capture.PNG 
Views:	37 
Size:	55.8 KB 
ID:	119089
    which then brings me to this:

    Click image for larger version. 

Name:	1.PNG 
Views:	3 
Size:	14.4 KB 
ID:	119090

    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
      My ComputerSystem Spec
  2.    30 Jan 2017 #2
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,079
    Win 10 Pro (1703)

    Please see
    Scheduled Defender Definition Updates Not Completing After AU

    Click image for larger version. 

Name:	Snap 2017-01-30 at 09.48.50.jpg 
Views:	4 
Size:	107.5 KB 
ID:	119092
    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.
      My ComputerSystem Spec
  3.    30 Jan 2017 #3
    Join Date : Aug 2016
    Posts : 62
    Xp, Vista, 7, 8.1, 10
    Thread Starter

    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?
      My ComputerSystem Spec
  4.    30 Jan 2017 #4
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,079
    Win 10 Pro (1703)

    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):
    When the task is run, a black CMD window will open momentarily and close down.

    If you wish to run a silent update, instead of: C:\Program Files\Windows Defender\MpCmdRun.exe –SignatureUpdate you may use: C:\Program Files\Windows Defender\MSASCui.exe -Update.
    Update Windows Defender when Automatic Updates is disabled

    (or %programfiles% as necessary)
      My ComputerSystem Spec
  5.    30 Jan 2017 #5
    Join Date : Aug 2016
    Posts : 62
    Xp, Vista, 7, 8.1, 10
    Thread Starter

    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
    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...
      My ComputerSystem Spec
  6.    31 Jan 2017 #6
    Join Date : Mar 2016
    Posts : 473
    Windows 10 Home

    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
    It runs silently in the background with no momentary GUI and command window.
      My ComputerSystem Spec
  7.    31 Jan 2017 #7

    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.
      My ComputersSystem Spec
  8.    31 Jan 2017 #8
    Join Date : Aug 2016
    Posts : 62
    Xp, Vista, 7, 8.1, 10
    Thread Starter

    @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
    Got another one of those dings this evening.

    Any more ideas, guys?
      My ComputerSystem Spec
  9.    31 Jan 2017 #9
    Join Date : Mar 2016
    Posts : 473
    Windows 10 Home

    Quote Originally Posted by ahmd View Post
    @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.
    Is there a reason why it works on my Windows 10 but not on yours?
    Does it work on other members'?
      My ComputerSystem Spec
  10.    31 Jan 2017 #10
    Join Date : Mar 2016
    Posts : 473
    Windows 10 Home

    Try using VBScript to call a .cmd file containing the following command:
    Code:
    "C:\Program Files\Windows Defender\MpCmdRun.exe" "-SignatureUpdate"
    It will run silently in the background with no momentary GUI and command window.
      My ComputerSystem Spec

 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
Solved Stop Automatic Updates on windows
Hello everyone can any body plz tell me how to Stop Automatic updates on windows 10???
Windows Updates and Activation
How can I stop Windows Defender definitions update notifications?
They happen every day and I always get this slide in toast notification. The updates are like 50kb and are done in .5 of a second, I don't need to know about it I think it's because I disabled auto update because I'd heard of Windows 10 handling...
AntiVirus, Firewalls and System Security
Solved Option to stop automatic driver updates is GONE in TH2???
So on RTM build, you used to have these options: http://i.imgur.com/LkYd41O.png But now, in TH2, you only have this: 50227 Is anyone else annoyed that Microsoft seems to be PURPOSELY REMOVING more and more of users' choice...
Windows Updates and Activation
Solved Must Stop Both Automatic Updates and Automatic Notifications!
Greetings, I have Windows 10 Home Edition, like millions of others. Like millions of others, I prefer to hibernate my computer rather than shut it down outright most nights. And like millions of others, I am getting awakened IN THE MIDDLE OF THE...
Windows Updates and Activation
Solved How do I stop automatic updates?
Hi everyone, I hate Windows 10 because it updates without my consent and slows my computer down a lot. I'd like to be notified that new updates are available and give my OK to download and install them. Can anyone help me please?
Windows Updates and Activation
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:47.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums