Is there a quick way to unlock all the items locked by a specific user from an admin account?


Something like that should do the trick:

Get-ChildItem master:\content -rec | 
  Where-Object { $_.Locking.GetOwner() -eq "sitecore\USERNAME" } | 
  % { $_.Locking.Unlock() }

You just take all the child items of the sitecore\content item, check if your chosen user is the owner of it and unlock the item.

  • the script seems to work fine , but the 'my items' list still shows the items are locked , i have tried clearing cache and cleaning up databases – SitecoreNoob Aug 7 '18 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.