Created
August 15, 2018 16:20
-
-
Save dcouto/b22cca5ba469bf484e90074b1abc8096 to your computer and use it in GitHub Desktop.
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
$allItems = Get-ChildItem -Path '/sitecore/content/Default Datasources/Default Featured Data List' -Recurse | |
ForEach ($item in $allItems) { | |
# Write-Host $item.FullPath | |
$item.Editing.BeginEdit() | |
$item["__Read Only"] = "1" | |
$item.Editing.EndEdit() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment