Page 1 of 2

Error Updating Windows 7 Ultimate 32bit and x64

PostPosted: 24.12.2011, 22:24
by rospo
I have two Windows 7 Ultimate SP1 machines one is 32bit and the other is x64 and having a problem UpdateInstaller.exe. It is trying start the 'Automatic Updates' service which is not a Service on the machine so it ERROR's out and quits the update process . The Service that runs the update service is 'Windows Update' (wuauserv). How can I change the code to look at this Service instead of 'Automaict Updates'.

Re: Error Updating Windows 7 Ultimate 32bit and x64

PostPosted: 25.12.2011, 19:04
by aker
The name "Automatic Update" is from Windows XP, but the real name of this service is always "wuauserv".
Could please post a part of the Logfile "C:\Windows\wsusoffline.log" or a screenshot.

Re: Error Updating Windows 7 Ultimate 32bit and x64

PostPosted: 26.12.2011, 07:10
by boco
Just a small remark: The wuauserv service must not be ''Disabled''. It has to be set to at least ''Manual''.

Re: Error Updating Windows 7 Ultimate 32bit and x64

PostPosted: 26.12.2011, 12:11
by aker
@WSUSUpdateAdmin
is there a way to enable wuaserv if its state is "disabled"?
I thougt about something like that
Code: Select all
if "%AU_SVC_START_MODE%"=="Disabled" (
    sc config wuauserv start= auto
)

Re: Error Updating Windows 7 Ultimate 32bit and x64

PostPosted: 26.12.2011, 16:00
by rospo
Took the Update service from Automatic to Manual and then stopped the service. After that reran UpdateInstaller.exe with no issues. Guess you have to have the service stopped and in Manual for it to work. Is there some way you can put code in to see if the service has already started and if so skip the start the service routine?

Re: Error Updating Windows 7 Ultimate 32bit and x64

PostPosted: 26.12.2011, 18:45
by aker
The state "automatic" is OK.
Please run ./client/cmd/DetermineSystemsProperties.vbs with admin privileges and post the content of "%temp%\SetSystemEnvVars.cmd"

Re: Error Updating Windows 7 Ultimate 32bit and x64

PostPosted: 29.12.2011, 20:40
by UranusOne
In my view, another required service is BITS (Background Intelligent Transfer Service)

Try type the next commands in a cmd window before run UpdateInstaller.exe

On WinXP x86/x64
    Code: Select all
    sc.exe config wuauserv start= auto
    net.exe start wuauserv
    sc.exe config bits start= auto
    net.exe start bits
On WinVista/Win7 x86/x64
    Code: Select all
    sc.exe config wuauserv start= delayed-auto
    net.exe start wuauserv
    sc.exe config bits start= delayed-auto
    net.exe start bits

After update, stop or/and disable the services (wuauserv and bits).

Greetings!

Re: Error Updating Windows 7 Ultimate 32bit and x64

PostPosted: 29.12.2011, 23:10
by aker
I think for every System this code should be OK.
Code: Select all
if "%AU_SVC_START_MODE%"=="Disabled" (
  sc config wuauserv start= auto
  net start wuauserv
)


and after Update

Code: Select all
if "%AU_SVC_START_MODE%"=="Disabled" (
  net stop wuauserv
  sc config wuauserv start= disabled
)


BITS isn't required for updating with WSUSOU because it doesn't need to download the patches via BITS.
And I think it isn't important which start-value is used because it will be disabled after the update.

Re: Error Updating Windows 7 Ultimate 32bit and x64

PostPosted: 02.01.2012, 15:03
by WSUSUpdateAdmin
Moin und ein gutes Neues Jahr!

aker wrote:@WSUSUpdateAdmin
is there a way to enable wuaserv if its state is "disabled"?[...]

Diese Diskussion hatten wir schon.
Ja, natürlich geht das, aber ich möchte es nicht.

Normalerweise steht der "Starttyp" von "wuauserv" auf "automatisch".
Wenn man das nicht möchte, z.B. um Ressourcen zu sparen, kann man ihn auf "manuell" setzen, dann startet WOU den Dienst selbst und beendet ihn auch wieder.
Wenn der Dienst allerdings auf "deaktiviert" steht, gehe ich davon aus, dass der Computeradministrator sich etwas dabei gedacht hat. Deswegen zieht WOU ihm diese Einstellung nicht einfach "unter dem Hintern weg", sondern antwortet mit einer Fehlermeldung.

Ebenso verhält es sich mit dem Skripting oder WMI-Abfragen: Wenn der Administrator diese, aus welchen Gründen auch immer, deaktiviert hat, funktioniert WOU nicht, und es ist ein manueller Eingriff erforderlich.
Das ist mir allemal lieber als automatische Änderungen am System.

Gruß
Torsten Wittrock

Re: Error Updating Windows 7 Ultimate 32bit and x64

PostPosted: 02.01.2012, 16:01
by mbathen
WSUSUpdateAdmin wrote:Das ist mir allemal lieber als automatische Änderungen am System.

Gruß
Torsten Wittrock


So sehe ich das auch.
Nichts und niemand hat an meinem System "automatisch" Einstellungen zu ändern.
Man möge mich als paranoid bezeichnen.