Undeclare / Declare all / some records in a list

Requirement Undeclare all records in a SharePoint list. Declare all records in a SharePoint list. Declare only specific records in a SharePoint list. Solution Use the following PowerShell script. $SPAssignment = Start-SPAssignment $web = Get-SPWeb <a href="http://your-site">http://your-site</a> -AssignmentCollection $spAssignment $list = $web.lists["your-list"].items foreach ($item in $list) { $IsRecord = [Microsoft.Office.RecordsManagement.RecordsRepository.Records]::IsRecord($Item) if ($IsRecord -eq $true){ Write-Host […]

Continue Reading...