Changes
→Automatic updates using registry
__TOC__
<package
id="winupdates"
name="Automatic updatesUpdates"
revision="8"
reboot="false"
priority="100">
<!-- http://support.microsoft.com/kb/328010 -->
<variable name="Mode" value="4" /> <variable name="ScheduledInstallDay" value="1" /> <variable name="ScheduledInstallTime" value="23" /> <!-- For "Mode": 1 | off Disable automatic updates 2 | notify Notify user before download 3 | download Download automatically; notify user before install 4 | install Download and install automatically For "ScheduledInstallDay": 0 | daily 1 | every sunday 2 | every monday 3 | every tuesday ... For "ScheduledInstallTime" 0 | 24 hour 1 | 1 hour 2 | 2 hour 3 | 3 hour ... -->
<check type="logical" condition="or">
<check type="logical" condition="and">
</check>
</check>
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 4 %Mode% /f' /> <install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v ScheduledInstallDay /t REG_DWORD /d 0 %ScheduledInstallDay% /f' /> <install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v ScheduledInstallTime /t REG_DWORD /d 8 %ScheduledInstallTime% /f' />
<upgrade cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /f' />
<upgrade cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 4 %Mode% /f' /> <upgrade cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v ScheduledInstallDay /t REG_DWORD /d 0 %ScheduledInstallDay% /f' /> <upgrade cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v ScheduledInstallTime /t REG_DWORD /d 8 %ScheduledInstallTime% /f' /> <remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /f' />
</package>
= Automatic updates with Unattended =