roflmao - bastard !

seriously, glad we did this exersise because I always wondered if there was a one-shot way of querying these single-item wmi collections.

Just wondering why this doesn't work now:

?"UserName=" + $objWMIService.ExecQuery("Select * from Win32_ComputerSystem").Item("Win32_ComputerSystem='$HOSTNAME'").UserName

-Shawn