Configuring Windows Automatic Update Schedule
If you are using Automatic Windows Updating on each computer you can configure the day/time for when it performs the updating if the Operating system is Windows XP or Windows 7.
Unfortunately Windows 8 and 10 do not allow you to specify a day/time for the scheduled WIndows Updating
Create the following batch file and modify the day and time as you require
In our example we save the batch file to win-upd-friday.bat
@ECHO OFF
REM updates-x7.bat
REM Enable automatic Windows updates and set schedule
REM Supported operating systems: Windows XP Professional, Windows 7
REM * * * * * * * * * * * *
REM Scheduled install day *
REM 0 = Every day *
REM 1 = Sunday *
REM 2 = Monday *
REM 3 = Tuesday *
REM 4 = Wednesday *
REM 5 = Thursday *
REM 6 = Friday *
REM 7 = Saturday *
REM * * * * * * * * * * * *
SET scheduled_day=6
REM * * * * * * * * * * * * * * * * * * * *
REM Scheduled install time *
REM 24-hour clock setting *
REM (must be an integer in range 0 - 23) *
REM * * * * * * * * * * * * * * * * * * * *
SET scheduled_time=17
REM Exit if OS is not supported
reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName | find "Windows 7" > nul
IF %ERRORLEVEL% EQU 0 (
GOTO settings
)
systeminfo | find "Windows XP Professional" > nul
IF %ERRORLEVEL% EQU 0 (
GOTO settings
)
GOTO end
:settings
REM modify Registry
reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v ScheduledInstallDay /t REG_DWORD /d %scheduled_day% /f > nul
reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v ScheduledInstallTime /t REG_DWORD /d %scheduled_time% /f > nul
reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 4 /f > nul
REM restart Windows Update service
net stop wuauserv > nul
net start wuauserv > nul
:end
EXIT
Now create a Third Party Template that runs the batch file.
Non UAC Enviornments
UAC Enabled Environments