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()
Get all the items from Hold Reports list using powershell
In this blog we will be seeing how to get all the items from Hold Reports list using powershell
I have a SharePoint site and I have activated the Site feature (Go to Site Actions => Site Settings => Site Actions => manage Site features) “Hold and eDiscovery”.


Join the conversation! Your thoughts help the community grow.