CMD s'approprime le dossier

For only a file
takeown /F <filename>

For all the sub folders and files within that folder
takeown /f <foldername> /r /d y
Dull Duck