Last summer we moved from a multiple domain NT 4.0 structure to a single domain Windows 2000 and AD. I have now found some folders and files in the users home folder that neither the user, administrator or domain administrator is able to access. Most of them are in thier ...\history\history.ie5 folders. I think that the owner of these folders/files is their account from the old NT domain that no longer exists. The only way we can gain access to them is by having an administrator take ownership of them and then change the acls on them so the user can get access to them again.
My question is... is there a command-line utility that would allow me to script this en-mass? I've tried xcacls.exe, subinacl.exe, fileowner.pl and takeowner.exe. The only one that seems to work is takeowner.exe but it doesn't have a resurse subdirectory option. I'd even settle for a way to 'blow-away' the folders if that's as good as I can get.
Thanks in advance for any help you can provide.