New
#10
Sorry if I was not clear.
What I want to do is to relegate as much routine computer activity (scans, backups, updates, etc.) as possible to the early hours of the morning while I am asleep. That is why I want it scheduled and completely non-interactive.
I have written a small script program called Sleepless for Task Scheduler which wakes my laptop from sleep and invokes a custom power plan to prevent sleep/hibernation, dims the screen and runs a quick backup of some important files. It takes only a couple of minutes, but leaves the laptop ready to accept long, unattended, scheduled programs. On nights I want to run such programs, I leave the computer turned on (mains power) and in sleep mode. Sleepless kicks in at 1:50am and I schedule the unattended program/s from 2:00am onwards. The custom power plan stays in place until I click a desktop icon when I am ready, or restart or power off then on. I realise that update restarts may permit unwanted sleep from the normal Balanced power plan, but that could be set up differently.
I've been doing this for malware scans, Windows Backup and System Image Backup for months, but had not thought of a way to include Windows Update until I saw the potential of PowerShell in this tutorial.
Does the above background help you to advise whether the PowerShell Windows Update Module:
a) Can do the job I want non-interactively via Task Scheduler?
b) Contains all PS cmdlets needed?
c) Would disable all other WU trigger sources, including WU itself?
Or, d) Could be realised in better/simpler ways by a different approach?
The link you supplied referred to the Windows Update MiniTool launched by the WUMT Wrapper Script. Is this a preferred approach or supplement? I do not understand the posts at the end of that link.
If the PowerShell approach is the way to go, I would still be grateful for any advice you can provide on setting uo the script file for Task Scheduler.
Apologies for my un-thought-through remarks about Active Hours.
Thanks.