#75802 - 2003-07-11 10:48 AM
Win2k SP4 install
|
Mart
KiX Supporter
Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
|
We are planning to upgrade all our workstations to sp4 for Win2k. Below a little script for anyone who is interested.
Servicepack should be unpacked first.
Options for silent, unattended, etc... -u = unattended mode -f = force other applications to close when system shuts down after install -n = do not backup file for un-installation -o = overwrite OEM file without prompting -z = do not restart when install is complete -q = quit mode (no user interaction) -l = list installed hot fixes -s:dir = integrate service pack files into dir -d:dir = backup files onto dir
Options can be ussed with this part of the script.
code:
Shell '\\servername\sharename\i386\update\update.exe'
Full script.
code:
;=============================================================================================== ;**** Created with KiXscripts Editor | http://KiXscripts.com **** ;**** Last Modified on 11-07-2003 at 9:14:02 **** ;=============================================================================================== $CSD = ReadValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CSDVersion") ; If ($CSD = 'Service Pack 1') Goto sp4installyes EndIf ; If ($CSD = 'Service Pack 2') Goto sp4installyes EndIf ; If ($CSD = 'Service Pack 3') Goto sp4installyes EndIf ; If ($CSD = 'Service Pack 4') Goto sp4installno EndIf ; If ($CSD = '') MessageBox('Unable to determine current servicepack version.' + Chr(13) + Chr(10) + 'Installation will not continue.', 'Windows 2000 SP4 installation', 16) Goto end EndIf ; :sp4installyes $sp4install = MessageBox('Windows 2000 Servicepack 4 will be installed.' + Chr(13) + Chr(10) + 'Continue?', 'Windows 2000 SP4 installation', 36) If ($sp4install = '6') ?'Installing Windows 2000 Servicepack 4, please wait.....' ?'' ?'System will automatically reboot when installation is finished.' Shell '\\servername\sharename\i386\update\update.exe' Else MessageBox('Windows 2000 Servicepack 4 installation canceled.', 'Windows 2000 SP4 installation', 48) Goto end EndIf ; :sp4installno MessageBox('Windows 2000 Servicepack 4 is currently installed.' + Chr(13) + Chr(10) + 'Installation will not continue.', 'Windows 2000 SP4 installation', 16) ; :end
[ 11. July 2003, 10:49: Message edited by: R2D2 ]
_________________________
Mart
- Chuck Norris once sold ebay to ebay on ebay.
|
Top
|
|
|
|
#75806 - 2003-07-12 12:10 AM
Re: Win2k SP4 install
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
you may want to extract the files to the client machine (c:\winnt\sp4) and have it run the update.exe from their PC.
win2ksp4_en.exe -u -x:%windir\sp4 %windir\sp4\i386\update\update.exe -f -n -o -q
If there is a case of installing a new device or software option, and the system wants the sp4 files you will be SOL without it.
|
Top
|
|
|
|
#75809 - 2003-07-12 12:15 AM
Re: Win2k SP4 install
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
beyond that... you should replace all those if statements with a select/case structure instead.
then replace the select/case with: if $csd and right($csd,1)<'4' do install endif
|
Top
|
|
|
|
#75813 - 2003-07-12 12:41 AM
Re: Win2k SP4 install
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
Well we don't have our machines running like Jens and we do perform rollouts during LOGON.
Our users typically are Administrators on their local system.
R2D2 Take a look at this script and see if there is anything you might want to use in yours or see what you might have forgotten to check.
http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=2&t=004424
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 248 anonymous users online.
|
|
|