Question:
Is there any way to change the ownership of files and directories with scripts or programs?
Answer:
You can use the SubInAcl.exe file (included in the NT 4.0 Resource Kit) to set the owner. For example, in my local resource kit directory, I created a file (x.x) as admin, then set the owner of the file to a standard user on my domain:
D:NT_ResKit>subinacl /file x.x /setowner=ljdomain estuser