Title: Message
Its not in an xml file, it's in the registry. For example (watch for wrappage):
 
echo off
 
REM criticalupdate.bat
REM .
REM This batch file updates a client computer's registry to
REM load critical updates from a specified SUS server - it
REM updates the registry entries to do that update "immediately" -
REM which actually means "starting in 10 minutes". The Automatic
REM Updates service presumes that it starts at boot, and it
REM wants to wait until the system has reached stability before
REM it begins doing anything.
REM .
REM This is meant to be used on standalone workstations or
REM standalone servers or SUS deployments that are not in an
REM active directory environment.
REM .
REM set SUSSERVER to the server that is running SUS
REM set SUSSHARE to the name of the share on SUSSERVER that
REM contains the MUAU22.msi file
REM .
REM Those two will be used to create SUSFILE which points to
REM the location of the MUAU update for Windows XP RTM and
REM Windows 2000 sp2.
REM .
REM SUSSERVER is also used to create registry keys.
REM .
REM Thanks to Bob Free for information about the AUState and
REM LastWaitTimeout registry entries.
 
set SUSSERVER=palmyra
set SUSSHARE=e
set SUSFILE=%SUSSERVER%\%SUSSHARE%\muau22.msi
 
cls
echo Attempting load of %SUSFILE%
 
msiexec /qn /I %SUSFILE%
 
echo Stopping Automatic Updates service
net stop "Automatic Updates"
 
echo Building registry file
 
if exist temp.reg del temp.reg
 
echo Windows Registry Editor Version 5.00>>temp.reg
echo.>>temp.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]>>temp.reg
echo "WUServer"="http://%SUSSERVER%">>temp.reg
echo "WUStatusServer"="http://%SUSSERVER%">>temp.reg
echo.>>temp.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]>>temp.reg
echo "NoAutoUpdate"=dword:00000000>>temp.reg
echo "AUOptions"=dword:00000003>>temp.reg
echo "UseWUServer"=dword:00000001>>temp.reg
echo "ScheduledInstallDay"=dword:00000000>>temp.reg
echo "ScheduledInstallTime"=dword:00000005>>temp.reg
echo.>>temp.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]>>temp.reg
echo "AUState"=dword:00000002>>temp.reg
echo "LastWaitTimeOut"="2000.01.01 00:00:01">>temp.reg
 
REM type temp.reg
 
echo Executing registry file
 
regedit /s temp.reg
 
del temp.reg
 
echo Starting Automatic Updates service
net start "Automatic Updates"
 
REM clean up
set SUSSERVER=
set SUSSHARE=
set SUSFILE=
 
echo Done
 
 
-----Original Message-----
From: Carlos Magalhaes [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 9:33 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] SUS

Just a quick one, does anyone know which XML file stores the SUS servers settings, for example when you schedule the server to update at 3:00am where does it actually store that info, I have looked at the config files in Administration folder in inetpub but nothing there. Anyone know?

 

Thanks!


Carlos Magalhaes

Reply via email to