How to take ownership of files from the command line?

subinacl is a Windows sysadmin’s power tool for doing everything to do with ownership and ACLs. You can change the ownership to anyone other than just you (you can’t do this with the GUI).

subinacl /file test.txt /setowner=domain\foo

This lets you set the permission to any user you like, without having to be an administrator (as I believe takeown.exe requires).

Leave a Comment