To determine if and when an item has been decommissioned get the decommissioning information for that item.


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)"