I have been involved in a huge public folder migration project for my company. One particular folder I migrated had a hierarchy of 1500 subfolders. The migration tool was nice enough to migrate the permissions for me for each folder into sharepoint. Cool, right? Yes until my manager told me he just wanted to manage the parent folder in sharepoint and have the subfolders inherit everything. There is nothing in sharepoint out-of-the-box that lets you do this in one shot. Now there are probably many 3rd party sharepoint admin tools that will do this. But here is the poor man's way. Simple IronPython script.
import clr
clr.AddReference("Microsoft.SharePoint")
from Microsoft.SharePoint import SPSite
siteurl = '<url to site>'
url= '<url to doclib>'
site = SPSite(siteurl)
web = site.OpenWeb()
docLib = web.GetList(url)
myfolders = docLib.Folders
for furl in myfolders:
furl.ResetRoleInheritance()
That's it! Took me only 10 minutes to write...without knowing much about the sharepoint API. The first 3 lines is the key here that lets you hook into the .NET framework and the sharepoint API.
Please read my original post for a guide on installing (if you can call it that) IronPython.