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!
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!
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!