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.Go to Start => All Programs => Microsoft SharePoint 2010 Products => SharePoint 2010 Management Shell => Run as an administrator. => Run the following script.$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.Titleforeach($item in $holds.Items){ write-host $item.DisplayName}$web.Dispose()$site.Dispose()
We are going to retrieve these items using powershell.Go to Start => All Programs => Microsoft SharePoint 2010 Products => SharePoint 2010 Management Shell => Run as an administrator. => Run the following script.$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.Titleforeach($item in $holds.Items){ write-host $item.DisplayName}$web.Dispose()$site.Dispose()
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: