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

up vote 5 down vote accepted

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 – Manohar R.A Aug 7 at 14:28

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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