Sitecore tools, I’ve got tons of them. Written because of I need them for projects, maintenance or sometimes just for fun or exploring the API. Last Friday I found out a colleague and I have maintaint the Sitecore items very poorly. Result: all of the items where exclusively checked out to: sitecore/admin. And as a lazy programmer, I’ve decided to create a small tool which can check in item recursively based on username.
When you leave the User-field blank, all items which are locked will be unlocked.
No support for this tool of course and usage is at your own risk, but I’ve tested it and worked fine for me(5.2.0.9+). Should also work on 5.1, but you’ve to migrate from partial classes to just one class.
Planning to create a Sitecore 5.3 IDE Tool like the XPath tool when I’ve got some spare time.

useful for sure, thanks!
Regards,
P.
hello the script does not do the job.
When it is run it says like;
Unlocked: /sitecore/content/home/prices
However if you login to the backend look at the item prices, you can see that it is still locked. hmmm.
Besides that you cannot leave the user field blank or else you get the following error;
Line 49: else if (txtUser.Text.Length == 0)
Line 50: {
Line 51: lockField.ReleaseLock();
Line 52: }
Line 53: Response.Write(“Unlocked: ” + rootItem.Paths.FullPath + “\n”);
In the user field you have to write sitecore/
but then again that wont help either, cause the script doesn’t unlock anything, it seems.
Anyway thanks for trying to make a very useful script.
DenmarkPetey
This looks exactly like what we are needing. has this tool been updated? Will this work with 6.2 now?
I’ve made a bunch updates to your script here, because I needed to use this. I would love to share my updates. You got an email I can send my files to?