I have two items in the “Hold Reports” (Go to Site Actions => Site Settings => Hold and eDiscovery => Hold Reports). We are going to retrieve these items using powershell.
$site = get-SPSite("http://serverName:22222/sites/Test/")
$web = $site.RootWeb
$holds=[Microsoft.Office.RecordsManagement.Holds.Hold]::GetHoldReportsList($web)
write-host -f green "HoldsReportList: " $holds.Title
foreach($item in $holds.Items)
{
write-host $item.DisplayName
}
$web.Dispose()
$site.Dispose()
Loading

Join the conversation! Your thoughts help the community grow.