You are correct...

If @PRODUCTTYPE <> "Windows 98" OR @PRODUCTTYPE <> "Windows XP Professional"

when @PRODUCTTYPE equals Windows 98"

@PRODUCTTYPE <> "Windows 98" results to 0
@PRODUCTTYPE <> "Windows XP Professional" result to 1

OR'ing these always returns TRUE

AND'ing this would return FALSE if the OS was either Windows 98 or Windows XP Professional


To find out if the computer is a server product try looking at these:
Code:
Function IsDomainController()
if InStr($ProductType,"Domain Controller")
$IsDomainController = 1
else
$IsDomainController = 0
endif
Endfunction

Function IsMemberServer()
if InStr($ProductType,"Server")
$IsMemberServer = 1
else
$IsMemberServer = 0
endif
Endfunction

Function IsNonServer()
if not (IsMemberServer() or IsDomainController())
$IsNonServer = 1
else
$IsNonServer = 0
endif
Endfunction




If @WKSTA <> "TETSUO" OR @WKSTA <> "VELMA"

will alway be true for the same reason as above.

If you want the IF top be TRUE only when the computer name is not TETSUO and not VELMA, you need to AND the conditions.

If the computer name is "VELMA".
@WKSTA <> "TETSUO" is 1
@WKSTA <> "VELMA" is 0


but since you OR'ed then it returns TRUE.

_________________________
Home page: http://www.kixhelp.com/hb/