Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Update > Install all windows updates

Reply
Thread Tools Display Modes

Install all windows updates

 
 
John King
Guest
Posts: n/a

 
      01-29-2008
Hi, I have WSUS running and configured. I also have a file copied to
everyone's desktop called "Defrag then shutdown.bat". Guess what that does.
What I would like to be able to do is also have this shutdown script (I
didn't want to force it using group policy in case someone is just doing a
quick restart) also install all Microsoft updates. If possible using the WSUS
server. I could have it point to a vbs file if that kind of scripting is
nessesary (as I have already done with my login script) or make it a vbs file
if you know the equavalent commands.

Also, if anyone has any other suggestions that belong in my "I'm shutting
down for the day so do all the maintinance that I should be doing myself
monthly" script i'm open to suggestions.
 
Reply With Quote
 
 
 
 
PA Bear [MS MVP]
Guest
Posts: n/a

 
      01-29-2008
Forwarded to WSUS newsgroup
(microsoft.public.windows.server.update_services) via crosspost as a
convenience to OP.

On the web:
http://www.microsoft.com/communities...pdate_services

In your newsreader:
news://msnews.microsoft.com/microsof...pdate_services
--
~Robear Dyer (PA Bear)
MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002
AumHa VSOP & Admin http://aumha.net
DTS-L http://dts-l.net/

John King wrote:
> Hi, I have WSUS running and configured. I also have a file copied to
> everyone's desktop called "Defrag then shutdown.bat". Guess what that
> does.
> What I would like to be able to do is also have this shutdown script (I
> didn't want to force it using group policy in case someone is just doing a
> quick restart) also install all Microsoft updates. If possible using the
> WSUS server. I could have it point to a vbs file if that kind of scripting
> is nessesary (as I have already done with my login script) or make it a
> vbs
> file if you know the equavalent commands.
>
> Also, if anyone has any other suggestions that belong in my "I'm shutting
> down for the day so do all the maintinance that I should be doing myself
> monthly" script i'm open to suggestions.


 
Reply With Quote
 
Harry Johnston [MVP]
Guest
Posts: n/a

 
      01-29-2008
John King wrote:

> Hi, I have WSUS running and configured. I also have a file copied to
> everyone's desktop called "Defrag then shutdown.bat". Guess what that does.
> What I would like to be able to do is also have this shutdown script (I
> didn't want to force it using group policy in case someone is just doing a
> quick restart) also install all Microsoft updates. If possible using the
> WSUS server. I could have it point to a vbs file if that kind of scripting
> is nessesary (as I have already done with my login script) or make it a vbs
> file if you know the equavalent commands.


One script you could start from is here:

<http://www.scms.waikato.ac.nz/~harry/wsusupdate.vbs>

There are others available on the web.

Harry.
 
Reply With Quote
 
JKing
Guest
Posts: n/a

 
      01-30-2008
Thanks Harry. That looks to be working. I just stripped it of all echo's
(except errors).

You may want to consider getting rid of some of the excessive echo's though.
There are blank echos that just result in an extra ok box without any text in
it.

"Harry Johnston [MVP]" wrote:

> John King wrote:
>
> > Hi, I have WSUS running and configured. I also have a file copied to
> > everyone's desktop called "Defrag then shutdown.bat". Guess what that does.
> > What I would like to be able to do is also have this shutdown script (I
> > didn't want to force it using group policy in case someone is just doing a
> > quick restart) also install all Microsoft updates. If possible using the
> > WSUS server. I could have it point to a vbs file if that kind of scripting
> > is nessesary (as I have already done with my login script) or make it a vbs
> > file if you know the equavalent commands.

>
> One script you could start from is here:
>
> <http://www.scms.waikato.ac.nz/~harry/wsusupdate.vbs>
>
> There are others available on the web.
>
> Harry.
>

 
Reply With Quote
 
Harry Johnston [MVP]
Guest
Posts: n/a

 
      01-30-2008
JKing wrote:

> You may want to consider getting rid of some of the excessive echo's though.
> There are blank echos that just result in an extra ok box without any text in
> it.


It's intended for console use, that is, cscript rather than wscript. Without
the extra echos the output is all scrunched up. :-)

Harry.
 
Reply With Quote
 
JKing
Guest
Posts: n/a

 
      01-31-2008
Ah, that explains it. Is there a way to make all computers under my domain
change their file association for vbs files? Then even the WSUS script would
run in the command window =).

Also, does this work on computers not associated with a WSUS server? Like my
computers at home? If not, do you have a script for using the Microsoft
Updates site?

"Harry Johnston [MVP]" wrote:

> JKing wrote:
>
> > You may want to consider getting rid of some of the excessive echo's though.
> > There are blank echos that just result in an extra ok box without any text in
> > it.

>
> It's intended for console use, that is, cscript rather than wscript. Without
> the extra echos the output is all scrunched up. :-)
>
> Harry.
>

 
Reply With Quote
 
Harry Johnston [MVP]
Guest
Posts: n/a

 
      02-01-2008
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.
 
Reply With Quote
 
JKing
Guest
Posts: n/a

 
      02-01-2008
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.
>

 
Reply With Quote
 
Luc Fontaine
Guest
Posts: n/a

 
      02-05-2008
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.
> >

 
Reply With Quote
 
JKing
Guest
Posts: n/a

 
      02-07-2008
I've just reinstalled windows on a machine due to a bad HD. And I want to
just run the WSUSupdate vbs file, but it has error on (27,3) (null):
0x80248008. I think this is because it hasn't reported to the WSUS yet (shown
on list of all computers, but status is Not yet reported). I tried running
wuauclt.exe /detectnow and nothing has changed.

"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.
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Update won't install updates after Repair Install Avacar Windows Update 14 09-11-2007 05:08 PM
Auto install not able to install updates for Windows XP (KB931386) Brijesh Gaur Windows Update 1 09-09-2007 04:32 AM
New windows install, updates & fresh install Matt D Windows Update 1 05-20-2005 11:13 PM
Re: no updates to install windows xp clean install Nicholas Windows Update 1 08-14-2003 01:01 AM
install updates (windows updates) Dale May Windows Update 0 07-20-2003 11:57 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59