Folks,

Kix provides the wonderful macro @PRODUCTTYPE. Is there something similar that I can use to get the OS of a remote machine. I have already tried

$oDomain = getobject("WinNT://$sDomainName")
$oDomain.filter = "computer",""
For each $oComputer in $oDomain
$oComputer.operatingsystem
$oComputer.operatingsystemversion
etc...

however the return values are
Windows NT
4.0
I was wanting to know whether the target machine is a server or workstation

The verbage for the ".role" property suggests that it may be useful however in my environment the return value is nothing.
"Role Gets and sets role of this computer (server, workstation, and so on) "

Furthermore, the curious thing is that the following produces no screen output
$x = "Role=" + $oComputer.role + ""
? $x
The following at least outputs the text "Role=" to the screen
$x = "Role=" ;+ $oComputer.role + ""
? $x

What is it about some of these properties that seems to zap the contents of variables ?
_________________________
Mark Pietersz