i had the problem, that wsusoffline did not autoreboot after installing sp1 for win7. It seems to hang in "InstallOSUpdate.cmd" in this section:
----
- Code: Select all
:InstExe
echo %DATE% %TIME% - Uranos: foo-installOSUpdates-InstExe >>%UPDATE_LOGFILE%
if "%SELECT_OPTIONS%" NEQ "1" set INSTALL_SWITCHES=%2 %3 %4 %5 %6 %7 %8 %9
if "%INSTALL_SWITCHES%"=="" (
for /F %%i in (..\opt\OptionList-Q.txt) do (
echo %1 | %SystemRoot%\system32\find.exe /I "%%i" >nul 2>&1
if not errorlevel 1 set INSTALL_SWITCHES=/Q
echo %DATE% %TIME% - Uranos: foo-installOSUpdates-InstExe-Q >>%UPDATE_LOGFILE%
)
)
if "%INSTALL_SWITCHES%"=="" (
for /F %%i in (..\opt\OptionList-qn.txt) do (
echo %1 | %SystemRoot%\system32\find.exe /I "%%i" >nul 2>&1
if not errorlevel 1 set INSTALL_SWITCHES=/q /norestart
echo %DATE% %TIME% - Uranos: foo-installOSUpdates-InstExe-q >>%UPDATE_LOGFILE%
)
)
if "%INSTALL_SWITCHES%"=="" (
if "%BACKUP_FILES%"=="0" (set INSTALL_SWITCHES=/q /n /z) else (set INSTALL_SWITCHES=/q /z)
)
echo Installing %1...
%1 %INSTALL_SWITCHES%
set ERR_LEVEL=%errorlevel%
if "%IGNORE_ERRORS%"=="1" goto InstSuccess
for %%i in (0 1641 3010 3011) do if %ERR_LEVEL% EQU %%i goto InstSuccess
goto InstFailure
The SP1.exe is executed and do a reboot before doupdate.cmd can do the PrepareRecall.cmd.
Here is my envirtoment:
win7
c:\netinst\client
start /wait %SYSTEMDRIVE%\netinst\client\cmd\DoUpdate.cmd /nobackup /verify /instie9 /updatecpp /updatedx /instdotnet4 /shutdown /autoreboot
I add some extra Debug Messages(Uranos):
- Code: Select all
28.09.2011 13:57:00,48 - Info: Medium supports Microsoft Windows (w61-x64 glb)
28.09.2011 13:57:02,03 - Info: Installing most recent Service Pack for Windows Vista / 7
28.09.2011 13:57:02,04 - Uranos: foo-installUpdates-Start
28.09.2011 13:57:02,10 - Uranos: foo-installUpdates-OS
28.09.2011 13:57:02,26 - Uranos: foo-installOSUpdates-Start
28.09.2011 13:57:13,82 - Uranos: foo-installOSUpdates-InstExe
Any Suggestions? I think a switch for noreboot is missing