Skip to content

Instantly share code, notes, and snippets.

@dcouto
Created August 6, 2018 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcouto/508e8017c6bdd7b4f4dd8771b516be62 to your computer and use it in GitHub Desktop.
Save dcouto/508e8017c6bdd7b4f4dd8771b516be62 to your computer and use it in GitHub Desktop.
$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