Get an existing item.



Code Sample


# Get the item.

$item = $xia.GET_Item(1234, 0);

Write-Host $item.Name;

Write-Host $item.TypeDisplayName;



# Windows server specific example.

if ($item.Type -ne "WindowsServer") { return; }

foreach($service in $item.WindowsServices.WindowsService)

{

    Write-Host "$($service.Name) [$($service.StateString)]";