Changes

Jump to: navigation, search

Automatic Updates

453 bytes removed, 14:04, 22 August 2011
Automatic updates using registry
__TOC__
= Automatic updates using registry =
 
Read this before you apply these settings: [http://support.microsoft.com/kb/328010 http://support.microsoft.com/kb/328010]. It's necessary to copy program "reg.exe" from XP machine to "C:\WINNT\System32\" directory on Windows 2000 machine or install Windows 2000 support tools.
 
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="winupdates"
name="Automatic updatesUpdates"
revision="8"
reboot="false"
notify="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 type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName" value="Microsoft Windows 2000" /> <check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\AUOptions" value="4%Mode%" /> <check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\ScheduledInstallDay" value="0%ScheduledInstallDay%" /> <check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\ScheduledInstallTime" value="8" /> </check> <check type="logical" condition="and"> <check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName" value="Microsoft Windows XP" /> <check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\AUOptions" value="4" /> <check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\ScheduledInstallDay" value="0" /> <check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\%ScheduledInstallTime" value="8%" />
</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>
</packages>
</source>
= Automatic updates with Unattended =
Anonymous user

Navigation menu