Get Decommissioning Information
To determine if and when an item has been decommissioned get the decommissioning information for that item.
- Connect to the configuration web service.
- Set the unique identifier of the item for which to obtain the decommissioning information.
Code Sample
# Get the decommissioning information.
$information = $xia.GET_DecommissioningInformation(1234);
# Display the decommissioning information.
Write-Host "Decommissioned: $($information.IsDecommissioned)";
if (!$information.IsDecommissioned) { return; }
Write-Host " Date: $($information.DecommissionDate)";
Write-Host " By: $($information.DecommissionAccountName)";
Write-Host " Reason: $($information.DecommissionDescription)";