Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Update > Scripting windows update

Reply
Thread Tools Display Modes

Scripting windows update

 
 
b_naick@yahoo.ca
Guest
Posts: n/a

 
      08-15-2005
Is it possible to write a VB script to run on XP which forces Windows
Update to run, download any patches, install them and then reboot the
PC?

 
Reply With Quote
 
 
 
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a

 
      08-15-2005
wrote:

> Is it possible to write a VB script to run on XP which
> forces Windows Update to run, download any patches,
> install them and then reboot the PC?
>

Hi,

Rob Dunn have created a nice VBScript that can do both detecting and
"install now" on a computer:

Windows Update Agent force script, email results
http://uphold2001.brinkster.net/vbsh...id=199&posts=1


The Windows Update Agent API used in the script is documented here:
http://msdn.microsoft.com/library/en...tal_client.asp

Several VBScript examples available at the MSDN web site as well:

Using the Windows Update Agent API
http://msdn.microsoft.com/library/en..._agent_api.asp





--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
b_naick@yahoo.ca
Guest
Posts: n/a

 
      08-29-2005
this is great! especially the example from the MSFT site.

I was unable to find an API reference to simply install "all updates"
and then reboot. The example seems to download each update, then
install one at a time.. what happens if a given update wants to reboot.

I am new to OS scripting to pls bear with my ignorance.

 
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
Scripting Windows Media Encoder Art Cube Windows Media Player 2 04-04-2006 09:37 PM
scripting and forcing windows update jd142 Windows Update 0 06-17-2005 08:35 PM
Windows Media Player DVD playback scripting Eliezer Kanal Windows Media Player 3 01-20-2005 05:20 PM
local scripting and update Jacko Windows Update 1 11-19-2003 10:38 PM
Scripting URLs in Windows Media Player 9 Andy Windows Media Player 0 10-29-2003 12:22 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