Last active
November 7, 2018 21:01
-
-
Save michaellwest/2ba21ff6e522f265f288d7400ca0dae8 to your computer and use it in GitHub Desktop.
Find all items under the home item with duplicate item paths using Sitecore PowerShell Extensions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$rootId = "{47982199-5497-49DE-8F2D-B10607B5049D}" | |
$rootItem = Get-Item -Path "master:" -ID $rootId | |
$rootItem.Axes.GetDescendants() | Initialize-Item | | |
Group-Object { $_.ItemPath} | | |
Where-Object { $_.Count -gt 1 } | | |
Sort-Object -Property Count -Descending | | |
Select-Object -Property Count, Name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment