Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Install Patches using XML source

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,24676
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Install Patches using XML source
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Install Patches using XML source - 8/10/2005 3:32:13 AM   
  mbouchard


Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
Here is the script that I use to install patches on NEW installs.  This is meant to be run on PC's that have

Windows XP SP1 with IE6 sp1
Windows XP SP2 with IE6 sp2
Windows 2000 SP4 with IE6 sp1

It can run on others but the patches that I download only support the above combo's.

It was designed to run from the network, but I have added in support for running from a CD/local disk.  Look at the code in the script file for more comments.

The folder structure of the patches is this

Something\Patches\MS0x-0xx\media\OS\Patchfile
ex. C:\Folder\Patches\MS05-037\Media\WinXP\Patchfile.exe
Where
Something can = \\server\share\folder\blah OR c:\folder\blah
and OS can equal
WinXPSP1
WinXPSP2
Win2000SP4

I hope that this is fairly easy to follow, but if you have any questions let me know.

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.
 
 
Post #: 1
 
 RE: Install Patches using XML source - 8/10/2005 3:32:39 AM   
  mbouchard


Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
Patches.VBS

------------------------------------------------------------------------

      

< Message edited by mbouchard -- 9/15/2005 11:19:18 PM >


_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to mbouchard)
 
 
Post #: 2
 
 RE: Install Patches using XML source - 8/10/2005 3:48:47 AM   
  mbouchard


Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
Patches.XML
The way this is setup.
<info patchscriptver=P-xx> is used to set what version of the patch script ran when the patches were installed to an environment variable.  This is only used for reporting.
<patch patchver=""> is used to store what version is being installed, call it want you want, I normally use the MS0 number, but you will notice a difference with the roll up's
<criterion patchpath="" cmd="" msg="">
    PatchPath = this line is used to tell where the patch is located (reference the first post to see what the path would look like
    cmd = the command line used to install patches.  Taken from the MS security bulletin
    msg = what is written to the log file.
<criteria osname="osver_or" osvalue=""/>
    osname = Used by the script to see what needs to be checked, ie OS or IE versions
    osvalue = See Script for what is being checked here, can be found in the constants at the top (IE) or in the getOS function (OS)
<registrycheck reghive="" regkey="" regcheck="" regchecktype=""/>
     reghive = which hive to check HKLM, HKCU etc.  For the most part HKLM is used
     regkey = Which key is being checked
     regcheck = What the value should be (can be key or value of a key)
     regchecktype = What is being checked, Key, Vlaue.  ATM I have only checked KEYs.

I have supplied some examples below.
-----------------------------------------------------------------------------------

      

< Message edited by mbouchard -- 9/15/2005 11:20:05 PM >


_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to mbouchard)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Install Patches using XML source Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts