I have something similar working right now...

Code:

for each $computer in netview2($domain,1)
$comp = split($computer,',')[0]
$tcomp = '\\' + $comp + '\'
$RegValue = ReadValue($tcomp + 'HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions','ProductType')
if $RegValue = 'WinNT'
...
endif
next



I guess you've already eliminated my two lines with your one line of code. I just want run this on WinNT/2K/XPPro.