#44358 - 2003-08-23 02:02 AM
Re: w2k service pack key?
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
I'd go with minimum requirements...
only nt&9x clients and no need for UDFs, 3.62 is sufficient
basic AD & UDF can get by with 4.02 advanced COM use needs 4.12 get with the program and don't hold me back is 4.21
|
|
Top
|
|
|
|
#44361 - 2003-08-27 03:37 PM
Re: w2k service pack key?
|
Stephen Wintle
Seasoned Scripter
Registered: 2001-04-10
Posts: 444
Loc: England
|
Radimus,
Now having updated to 4.21 have run your script, it just seems to bypass the first line, code:
if split(@producttype)[1]='2000' and split(@csd)[2]<'4'
as if it doesnt meet any of these conditions yet am running on unservice packed w2k client, strange...
Steve
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!
|
|
Top
|
|
|
|
#44364 - 2003-08-28 12:43 AM
Re: w2k service pack key?
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
put some test print statements in there...
make sure that it is getting there perhaps print out the values before the if statement, to verify that you are getting what you expect... [ 28. August 2003, 00:46: Message edited by: Radimus ]
|
|
Top
|
|
|
|
#44365 - 2003-08-28 01:32 AM
Re: w2k service pack key?
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11628
Loc: CA
|
Here is some code to get the information you're looking for with console output You can also look here for some more information or ideas http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=2&t=004424
IF @INWIN = 1
SELECT
CASE @ProductType='Windows 2000 Professional'
IF @CSD <> 'Service Pack 4'
? 'Your SP is: '+@CSD+' We will now run an update'
; run update code here
ENDIF
IF @CSD = 'Service Pack 4'
? 'Your system is running the latest Service Pack: '+@CSD
? 'No update required'
ENDIF
CASE 1
? 'Your system does not appear to be a Windows 2000 Workstation'
? 'We show it as: '+@ProductType+' - '+@CSD
QUIT @ERROR
ENDSELECT
ENDIF
|
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1188 anonymous users online.
|
|
|