mmm...
is there any specific reason why you don't want to use normal script like:
code:
$pp = ReadValue("\\machines_name_or_IP\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions","ProductType")

select
Case $pp="WinNT"
$os="Windows NT/2k Workstation"
Case $pp="LANMANNT"
$os="Windows NT 4.0 Domain Controller"
Case $pp="ServerNT"
$os="Windows NT 4.0 Member Server"
endselect

to get all wintosh tree, need little bit more intelligence, but you probably get my point...
_________________________
!

download KiXnet