I've done all of that as a shutdown script but after downloading all the
updates, it quits the script with the exit error: 0x240001 in
WindowsUpdate.log
Here's the final lines of the WindowsUpdate.log file:
2008-02-05 11:57:06:884 840 7ac DnldMgr Generating download request for
update {594EF229-D180-40C3-9560-53CFD01E13AA}.104
2008-02-05 11:57:08:387 840 7ac Handler Windows Patch download for UpdateId
= {594EF229-D180-40C3-9560-53CFD01E13AA}: selected action is download
full-file.
2008-02-05 11:57:08:397 840 7ac DnldMgr *********** DnldMgr: New download
job [UpdateId = {594EF229-D180-40C3-9560-53CFD01E13AA}.104] ***********
2008-02-05 11:57:08:407 840 7ac DnldMgr * All files for update were
already downloaded and are valid.
2008-02-05 11:57:08:547 840 7ac Agent *********
2008-02-05 11:57:08:547 840 7ac Agent ** END ** Agent: Downloading
updates [CallerId = ]
2008-02-05 11:57:08:547 840 7ac Agent *************
2008-02-05 11:57:08:557 124 124 COMAPI >>-- RESUMED -- COMAPI: Download
[ClientId = <NULL>]
2008-02-05 11:57:08:557 124 124 COMAPI - Download call complete
(succeeded = 94, succeeded with errors = 0, failed = 0, unaccounted = 0)
2008-02-05 11:57:08:557 124 124 COMAPI ---------
2008-02-05 11:57:08:567 124 124 COMAPI -- END -- COMAPI: Download
[ClientId = <NULL>]
2008-02-05 11:57:08:567 124 124 COMAPI -------------
2008-02-05 11:57:56:135 840 7ac Report Uploading 2 events using cached
cookie, reporting URL =
http://svr-wsus/ReportingWebService/...ebService.asmx
2008-02-05 11:57:56:316 840 7ac Report Reporter successfully uploaded 2
events.
2008-02-05 12:01:13:439 840 5e0 AU ########### AU: Uninitializing
Automatic Updates ###########
2008-02-05 12:01:16:233 840 5e0 Service *********
2008-02-05 12:01:16:233 840 5e0 Service ** END ** Service: Service exit
[Exit code = 0x240001]
2008-02-05 12:01:16:233 840 5e0 Service *************
I also have a problem executing as a shutdown script updatehf.vbs from Rob
Dunn where it exits with the error: Required Object: 'installer'.
I hope that helps.
"JKing" wrote:
> Brilliant. I just added "%systemroot%\System32\CScript.exe" in front of the
> path to the vbs file in my script. Now it all runs in one window. I put the
> echo's back. I was worried after reading how most others had to change file
> association. Ewwww.
>
> Just tried on my home computer. Seemed to work fine.
>
> Thanks for everything.
>
> "Harry Johnston [MVP]" wrote:
>
> > JKing wrote:
> >
> > > Ah, that explains it. Is there a way to make all computers under my domain
> > > change their file association for vbs files?
> >
> > I don't think you want to do this. :-)
> >
> > Perhaps you should create a link with the appropriate command line to run the
> > vbs script in the console window?
> >
> > > Also, does this work on computers not associated with a WSUS server? Like my
> > > computers at home?
> >
> > It should, as far as I know, but I've never tried. No warranty!
> >
> > Harry.
> >