Silent Automatic Updates

N/a / N/A
February 20, 2009 at 15:32:51
Specs: Windows XP Pro, 1.6 GHz/1 GB
Hi there,

I have a friend who has an XP Pro machine. He doesn't know much about computers and wants to be able to use it for e-mail without having to worry about Windows updates and virus definition updates and such. I'm trying to figure out how to FULLY automate the automatic updates. I'm working on a batch file and testing it in a virtual machine. I've got it to the point where it will download updates automatically and if you specifically choose to install the updates then it will install them and won't nag you to reboot every ten minutes and won't reboot automatically. All of that is exactly how I want it except for one thing: you have to specifically choose to install the updates yourself. Is there a way to install them automatically? Here is the batch file I have so far:
---------------------
@ECHO OFF
CLS
NET STOP "Automatic Updates"
ECHO Adding registry entries...
ECHO.
ECHO **************************************************

REM Turn on automatic updates
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 4

REM Set the install day to be every day
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v ScheduledInstallDay /t REG_DWORD /d 0

REM Set the install time to be 12:00 PM
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v ScheduledInstallTime /t REG_DWORD /d 12

REM Silently install minor updates
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AutoInstallMinorUpdates /t REG_DWORD /d 1

REM Enable RebootRelaunchTimeout
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v RebootRelaunchTimeoutEnabled /t REG_DWORD /d 1

REM Set the time between prompting again for a scheduled restart to be 1,440 minutes (24 hours)
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v RebootRelaunchTimeout /t REG_DWORD /d 1440

REM Logged-on user gets to choose whether or not to restart the computer instead of being notified that the computer will restart in 5 minutes
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1

ECHO.
ECHO **************************************************
ECHO.
NET START "Automatic Updates"
WUAUCLT /DETECTNOW
PAUSE
---------------------
Thank you!


See More: Silent Automatic Updates

Report •


#1
February 21, 2009 at 00:31:31
nrogers64, strikes me that maybe the simplest way would be to instruct him to turn the machine off when he's done for the day and going to bed. As he reboots upon arising, the machine is updated?
HTH.
Ed in Texas.

Report •

#2
February 23, 2009 at 08:35:31
Thank you!

Report •

#3
April 12, 2009 at 10:05:30
With the tool WuInstall (http://www.xeox.com/index.php/en/tools/wuinstall) i think you should be able to do exactly what you want - search, download and install the windows updates in one step.
you can also specify crierias and search options for updates and force a reboot


Report •

Related Solutions

#4
April 13, 2009 at 11:57:21
Excellent! Thank you very much; this should definitely work.

Report •


Ask Question