autoreboot does not work with win7 sp1 kb976932

autoreboot does not work with win7 sp1 kb976932

Postby 1inux » 28.09.2011, 13:27

Hi,

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
1inux
 

Re: autoreboot does not work with win7 sp1 kb976932

Postby 1inux » 28.09.2011, 15:52

Update: a little bit more debugging:

Code: Select all
28.09.2011 16:01:28,85 - Uranos: foo-installOSUpdates-Start
28.09.2011 16:01:29,48 - Uranos: foo-installOSUpdates-InstExe select_opts: inst_sw: 
28.09.2011 16:01:29,48 - Uranos: foo-installOSUpdates-InstExe EXE: ..\w61-x64\glb\IE9-Windows7-x64-deu.exe switches: /unattend /forcerestart   
28.09.2011 16:02:30,67 - Uranos: foo-installOSUpdates-InstExe-Done
28.09.2011 16:02:30,67 - Info: Installed ..\w61-x64\glb\IE9-Windows7-x64-deu.exe
28.09.2011 16:02:30,67 - Uranos: foo-installOSUpdates-Ende


The Problem is with the switches: /unattend and /forcereboot PrepareRecall.cmd is not executed.

So i changed the switches to: /quiet /nodialog /norestart. Now PrepareRecall.cmd runs, but no autologin starts. Because i dont't know the password for WOUTempAdmin i logged in with my normal Admin Account and the DoUpdate.cmd starts and now it hangs at:
Code: Select all
28.09.2011 16:01:29,48 - Uranos: foo-installOSUpdates-InstExe EXE: ..\w61-x64\glb\IE9-Windows7-x64-deu.exe switches: /quiet /update-no /no-default /norestart     
28.09.2011 16:02:30,67 - Uranos: foo-installOSUpdates-InstExe-Done
28.09.2011 16:02:30,67 - Info: Installed ..\w61-x64\glb\IE9-Windows7-x64-deu.exe
28.09.2011 16:02:30,67 - Uranos: foo-installOSUpdates-Ende


Where it saves the wsus-backup thinks, but this does not work because they allready exists.

So, any ideas why autologin for WouTempAdmin does not work? Does the SP1 change somethings?
1inux
 

Re: autoreboot does not work with win7 sp1 kb976932

Postby WSUSUpdateAdmin » 29.09.2011, 07:26

Hi and welcome, 1inux,

1inux wrote:i had the problem, that wsusoffline did not autoreboot after installing sp1 for win7.[...]
The SP1.exe is executed and do a reboot before doupdate.cmd can do the PrepareRecall.cmd.

Exactly. This can't be worked around, and therefore, when you start the updating process using UpdateInstaller.exe, you'll get a warning popup window which informs you that the autoreboot feature is unavailable on Vista/7 systems which don't have the latest Service Pack installed.

1inux wrote:Any Suggestions? I think a switch for noreboot is missing

There is one, of course!
If you run Update.cmd/DoUpdate.cmd directly because you dislike UpdateInstaller.exe, just don't use "/autoreboot" on Vista/7/Server 2008(R2) systems without the latest Service Pack.

Regards
Torsten Wittrock
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38


Return to Installation / Updating

Who is online

Users browsing this forum: No registered users and 68 guests