Get Item
Get an existing item.
- Connect to the configuration web service.
- Specify the unique identifier of the required item.
- Specific code can be written based on the item type.
- The user must have read permissions to the 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)]";
}