On 07/28/2011 11:25 PM, Sean M. Pappalardo wrote:
> Hello again.

Hello,

> I also use WSUS Offline Update (http://download.wsusoffline.net/) which
> is basically a complex scripting system to download all of the Windows,
> Office, etc. updates for use offline or over a network. I was wondering
> if it would be possible to combine the repositories of this program and
> Unattended? (This way, the stuff need only be stored in one place but
> could be used for new installs as well as maintenance.) WSUS Offline can
> store its items on a Linux server via Samba (that's what I do,) so
> that's not a limitation.
 >
 > Let me know what you all think.
 >
 > Sincerely,
 > Sean M. Pappalardo

I also use a lot WSUSOffline for Windows patches, DotNet, 
InternetExplorer 8, Office patches and co.

In order to not duplicate storage of patches, I've simply removed the 
updates patches provided by Unattended.

"It's working fine for me" ;-)
See my scripts below.

Integrate WSUSOffline into Unattended code could be possible.
But it also means to be abble to call the update of WSUSOffline from the 
usual scripts dedicated to this task in Unattended ...


my Unattended base.bat script looks like this:
(sorry, I have some text wrap troubles these days with TB)

------- base.bat -----------------------------------------------
:: MASTER: OS only with patches, tiny customisations
::
:: 20110117 - rewrite: use WSUSOffline for OS patches, IE8 installation, 
DOTnet 3.5 installation.

@Echo off

SET LOC=\\server\a_share
SET DOM=myDOMAIN
SET USER=aUSER

:: REMINDER - todo.pl is a stack in reverse order.

:: disable System Restore
todo.pl "srconfig.pl --disable"

:: Set Automatic Updates to download and update automatically (SP2 behavior)

todo.pl "auconfig.pl --day 0 --time 3 --wait 10 4"

:: microsoft patches from WSUSoffline
todo.pl ".reboot-on 195 PUSHD %LOC%\system\wsus-offline & custom.cmd 
/silent"

:: hardware platform support (bluetooth stack for instance)
:: reminder: more and more requires DotNET
todo.pl .reboot
todo.pl "PUSHD %LOC%\hardware & custom.cmd /silent"

:: Install DotNet 3.5
todo.pl ".reboot-on 195 PUSHD %LOC%\system\wsus-offline\files\client\cmd 
& CMD /C DoUpdate.cmd /nobackup /instdotnet35"

:: Defragment the drive to collect the free space.
:: *** FIXME disabled for tests ***
::todo.pl defrag.bat

:: Update windows and turn off annoying stuff.
todo.pl .reboot
todo.pl winxpsp3-Mine-defaults.pl

:: Install IE8 then patch it
todo.pl ".reboot-on 195 PUSHD %LOC%\system\wsus-offline & custom.cmd 
/silent"
todo.pl ".reboot-on 195 PUSHD %LOC%\system\wsus-offline\files\client\cmd 
& CMD /C DoUpdate.cmd /nobackup /instie8"

:: Windows patches via WSUSoffline
::   - wsus-offline/ is a symlink to pkg/system/wsus-offline/
::   - called 2 times since some patches may require a reboot.
todo.pl ".reboot-on 195 PUSHD %LOC%\system\wsus-offline & custom.cmd 
/silent"
todo.pl ".reboot-on 195 PUSHD %LOC%\system\wsus-offline & custom.cmd 
/silent"

:: Windows2003: install R2 components before setting user's profile
::              (as it was launched in [GuiRunOnce] section of unattend.txt)
if "%WINVER%" == "ws2k3sp2" todo.pl "CMD /C 
%LOC%\system\ws2003-install-r2\custom.cmd /silent"

:: UNC path have to be mounted to get a prompt
:: if user/password does not match.
todo.pl "NET USE %LOC% /user:%DOM%\%USER% /persistent:no"

:: Set IIS startup type to manual and ignore if not installed.
:: reminder: IIS is not installed (disabled in unattend.txt)
::todo.pl ".ignore-err 255 startup-type.pl Manual IISADMIN" ".ignore-err 
255 startup-type.pl Manual W3SVC"

:: Turn off Windows Messenger service
todo.pl "startup-type.pl Disabled Messenger"
-------------------------------------------------------------------------

--------- wsus-offline/custom.cmd -------------------------------

REM mount a temporary network share if called from an UNC path
PUSHD %0\..

ECHO.
ECHO # Install last important Microsoft patches
ECHO # thanks to WSUS Offline (http://wsusofline.net)
ECHO #   log file: %windir%\wsusofflineupdate.log
ECHO.

ECHO # - launch update...
ECHO #   Updates as of:
TYPE files\client\builddate.txt

PUSHD files\client\cmd
REM CMD /C DoUpdate /nobackup /instie8
REM CMD /C DoUpdate.cmd /nobackup /instie8 /instdotnet
CMD /C DoUpdate.cmd /nobackup
SET ret=%ERRORLEVEL%
ECHO #   ret=%ret%
POPD

ECHO #
ECHO # End of installation.
ECHO #   log file: %windir%\wsusofflineupdate.log
ECHO #
ECHO # Please restart your system.
ECHO #

:end
IF NOT "%1" == "/silent" PAUSE
--------------------------------------------------------------------

Regards,

Pierre

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to