Created
August 6, 2018 13:21
-
-
Save dcouto/508e8017c6bdd7b4f4dd8771b516be62 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$items = Get-Item master: -Query "/sitecore//*" | |
Write-Host $items.Length | |
$items | ForEach-Object { | |
try { | |
[Sitecore.Globals]::LinkDatabase.UpdateReferences($_) | |
# [Sitecore.Globals]::LinkDatabase.UpdateItemVersionReferences($_) | |
} | |
catch { | |
Write-Host $_.Paths.Path | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment