Change OWNER on NTFS
NTFS manage ACL and Ownership, I already explained how to change the permissions from a command line with CACLS on this post but I would like to explain how to change the ownership too.
You can use 2 tools: subinacl.exe and SetACL.exe
How can I use it ?
subinacl.exe /subdirectories "C:\MyFolder" /setowner="myUser"
SetACL.exe -on "C:\MyFolder" -ot file -rec cont_obj -actn setowner -ownr "n:S-1-5-21-1644491937-1993962763-725345543-2151;s:y"
SetACL require the User's SID, you can quickly find it using user2sid.exe