| |
SAPIENScripter
Posts: 270
Score: 2
Joined: 11/1/2006
From: SAPIEN Technologies
Status: offline
|
It got even better in RC2 PS E:\> $pc=[wmi]"root\cimv2:win32_computersystem.name='GODOT'" PS E:\> $pc.totalphysicalmemory 1609805824 PS E:\> $pc.roles LM_Workstation LM_Server SQLServer Print NT PS E:\> As long as you can query to a specific WMI instance, you can access all properties easily.
_____________________________
Jeffery Hicks Windows PowerShell MVP SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com Follow Me: http://www.twitter.com/JeffHicks
|
|