Windows 10: Scheduling Windows Updates Through Task Scheduler

Discus and support Scheduling Windows Updates Through Task Scheduler in Windows 10 Performance & Maintenance to solve the problem; I'd like to be able to run Windows updates each day at 2:00am. I need to move them to non productive hours. I read the posting by Brink on setting... Discussion in 'Windows 10 Performance & Maintenance' started by Caledon Ken, Oct 27, 2016.

  1. Scheduling Windows Updates Through Task Scheduler


    I'd like to be able to run Windows updates each day at 2:00am. I need to move them to non productive hours.

    I read the posting by Brink on setting the Automated Updates. I confirmed my settings and ensured my wake timers (under Sleep in Advanced Power Options) is set to enabled. It doesn't run which I confirmed by opening settings and I can see the last time it checked for updates is not 2:00am, it is when I did a manual check.

    I'm running Windows Home 10 so the group policy solution also posted doesn't work. I found this command "control.exe /name Microsoft.WindowUpdate" and while it will invoke updates in a CMD window I don't have sufficient permissions within task scheduler. This is interesting as I set the task with an admin id and confirmed twice that the "Run with highest privileges" box is tick. Now when I open the command prompt manually I do invoke as admin.

    Does anyone have a command or a possible solution to this issue. I liked Brink's idea of just using Windows to do the job but can't understand why the "Last Time Checked" wasn't updated.

    Any help would be appreciated. I've enclosed the error from the event viewer. In Task scheduler it ends on a (0x1).

    :)
     
    Caledon Ken, Oct 27, 2016
    #1
  2. gwforeman Win User

    Computer Shutsdown at 7 pm everynight

    This will only work if a Shutdown is in progress or initiated. It will not change a task that is scheduled. Look through your Windows Task Scheduler and see if there is a task with Shutdown listed.
     
    gwforeman, Oct 27, 2016
    #2
  3. windows 10 sign out at 2.30am

    It is probably either a windows update or a scheduled maintenance. I would look in task scheduler. Type task scheduler in search and see if there is something scheduled at that time.
     
    ZigZag3143 (MS -MVP), Oct 27, 2016
    #3
  4. dalchina New Member

    Scheduling Windows Updates Through Task Scheduler

    Hi, this doesn't directly answer your question, which is harder to answer as you lack the Group policy editor, but it may contribute to it.

    I understand that not only would you wish to control restarts related to updates but also the download of updates.

    In scheduling a scan for windows updates so these are downloaded at only a particular time, you would also need to inhibit the normal feature. One way of doing this is given here: (note the registry method is at the end, before you say you haven't got the Pro version).
    http://www.thewindowsclub.com/make-w...indows-updates

    Considering your scheduled task, presumably you have done sth like this:

    • Open Task Scheduler

    • Create a new task
    • In the "General" tab - ensure the following settings are entered:
      • "Run whether user is logged on or not"
      • "Run with highest privileges"
      • "Configure For" (your operating system)
    • In the "Triggers" tab, when adding a trigger (schedule) - ensure that the "Enabled" checkbox is checked
    The other tabs need to be looked at as well (actions etc) - but these are the options you should specify when trying to ensure a task runs regardless of which user is logged in, and without the UAC prompts.


    When saving the task, you will be prompted to enter a username and password - this username and password is the user that will be used to execute the task. If you are running the task with "highest privileges" you will need to make sure this is an admin account.


     
    dalchina, Oct 27, 2016
    #4
  5. Thanks. I'm not that concerned about the restarts, its the drain on bandwidth. I'll check the other tabs, otherwise I have everything set up as you described. The tasks is running, event log shows computer awakening, shows the task ran, so the "Run whether users is logged on or not" is set, checked highest privileges and configured for Windows 10. Confirmed it is an admin id, as I must enter my password and the check is checked to run with highest privileges. I can run the command line from a "Prompt with Admin rights" it just doesn't seem to have authority in task scheduler.

    Thanks for responding. I will check all tabs again.
     
    Caledon Ken, Oct 27, 2016
    #5
  6. dalchina New Member
    You can of course run the scheduled task at any time for test purposes- rt click it and run.

    Note the link in my first para to disable downloading.

    Else you need to find what triggers the normal Windows update scan, and disable that. I know which scheduled task is responsible for the 4 hourly apps update check (that's another download!) but not that one.
     
    dalchina, Oct 27, 2016
    #6
  7. Thanks. Yes I did try running manually and got same failure.

    Agree, I'm looking for command to kick off updates. The one I found works from a Command prompt but not scheduler. The other way is I'm hoping someone will know how to elevate the permissions in scheduler so it will run.

    While not pretty I was even thinking of creating a bat file or cmd file and calling that file from the scheduler.
     
    Caledon Ken, Apr 4, 2018
    #7
Thema:

Scheduling Windows Updates Through Task Scheduler

Loading...
  1. Scheduling Windows Updates Through Task Scheduler - Similar Threads - Scheduling Updates Through

  2. Task scheduler!

    in Windows 10 BSOD Crashes and Debugging
    Task scheduler!: Hi again, I clicked on Defrag optimise files and this came up! I have been into services to try and start it but no joy! Not had this problem before!Any ideas?Windows 10 22H2Brian...
  3. Task Scheduler

    in Windows 10 Software and Apps
    Task Scheduler: I want to schedule a video file using task scheduler and the task scheduler is working properly and the wizard opens where I have to choose an application to run the video file but when I select VLC or Power Media Player, it shows these errors: Why is it happening?...
  4. Task to be scheduled

    in Windows 10 Customization
    Task to be scheduled: Hi,My requirement is that systemwhich flap is down and it is shutdown should turn on daily 7 amIt should open MS Teams and certain more apps.I tried the Windows Task scheduler but No such optionCan anyone suggest any Program for this or guide me for this requirement in Task...
  5. Task Scheduler

    in Windows 10 Ask Insider
    Task Scheduler: Hey r/windows10, I'm trying to use Task Scheduler, and struggling. I've looked around on the internet for solutions, but either my searches aren't worded right, or this isn't a common question, but essentially what I'm trying to do is make my computer shut down at 2am if I...
  6. Task scheduler

    in Windows 10 Ask Insider
    Task scheduler: Hi! In Windows task scheduler I have turned on "run task as soon as possible after a scheduled start is missed". Task was not started on the day it was supposed to start, and I wanna ask you, will it run task next day? And the second question - can I set latest time to run...
  7. Scheduled Tasks

    in Windows 10 Network and Sharing
    Scheduled Tasks: I have found working with computers for the past 30 years that they don't make mistakes. Or if they do, they make them consistently. That being said, I use Scheduled Tasks and Robocopy to backup to different drives on the same, and different computers on the same network....
  8. Task Scheduler

    in Windows 10 Support
    Task Scheduler: I have a relatively new install of Windows 10. I installed a new SSD and installed from scratch and then reinstalled all my software. I created some scheduled tasks, just 4 simple copy and paste tasks that I use for backing up. I've recently had to reinstall from scratch my...
  9. Scheduling Windows Defender updates with task scheduler not working.

    in Windows 10 Performance & Maintenance
    Scheduling Windows Defender updates with task scheduler not working.: I've followed instructions for setting up Windows Defender updates with task scheduler but it's not working. Windows defender opens up at the scheduled times but just does nothing. Guides I followed: http://www.thewindowsclub.com/update...dates-disabled Manage data usage...
  10. Task scheduler

    in Windows 10 Support
    Task scheduler: I have created a task that will run once every night 01:00 on my Windows machine. It worked OK before upgrade to Windows 10 Pro. Now it doesn't. When I try to run it manually from Task Scheduler following error occurs: Task Scheduler service is not available. Task...