Powershell cleaning orphan objects in content DB

The below script help to identify and clean orphan objects in content databases. clear if ((Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null ) {Add-PSSnapin Microsoft.SharePoint.Powershell} $CDBs = Get-SPContentDatabase ForEach ($CDB…

Read More