de-DEen-US
Blog_List
The blog about Microsoft products by Matthias Schlomann
 Matthias Schlomann
 18  3641  12/9/2015
Categories
Blog

Find orphaned objects on SharePoint and delete them using powershell

By Matthias Schlomann on 2/19/2015

The following script identifies detailed Orphaned objects in a SharePoint farm, and outputs them in a XML file.

Get-SPContentDatabase | ForEach-Object { $_.repair($false) | out-file -filePath (“x:\temp\” + $_.name + “.xml”)}

With only a small change all orphaned objects are deleted, and also output into a XML file.

Get-SPContentDatabase | ForEach-Object { $_.repair($true) | out-file -filePath (“x:\temp\” + $_.name + “.xml”)}

Administration
Microsoft
SharePoint
Website
2010
SharePoint
SharePoint 2010
Blog_Archive
Blog_Tags
Privacy Statement | Terms Of Use | © 1994-2024 by AARSYS - Matthias Schlomann