Create a full holds reports in Sharepoint 2010 Records Center using Powershell

New Contributor
Good morning, I'm trying to create a Powershell script where I can get the list of all holds of my records center and the items on hold linked to them instead of parsing each Excel file of the Hold Reports. Is there a way for that?
3 Replies

@lgouveajr You could try something like this not 100% but some thing similar

[Microsoft.SharePoint.SPWeb]$web = Get-SPWeb $RecordCenterURL
$list = $web.Lists["MyList"]
$spQuery = New-Object Microsoft.SharePoint.SPQuery
$spQuery.Query = $list.Views["ViewName"].Query
$items = $list.GetItems($spQuery)
$cntItems = 0
foreach($item in $items)
if (([Microsoft.Office.RecordsManagement.RecordsRepository].IsOnHold is true) {
write-output "$($item.url) "



@Naveen KarlaWhich list should I use for the MyList? The drop-off library, holds list or the record library?


@lgouveajr Run this in holds list and see if it works.


You know what there is a property compliance info.



foreach($item in $items)
if (([Microsoft.Office.RecordsManagement.RecordsRepository].IsOnHold is true) {
write-output "$($item.ComplianceInfo) "


Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
50 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
32 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
15 Replies
Dev channel update to 80.0.355.1 is live
josh_bodner in Discussions on
67 Replies