Use takeown from the command prompt to take ownership a folder, all its subfolders and files recursively:
takeown /f "c:\folder\subfolder" /r
This works well, but if you don't run your command line console as administrator it may fail for files you don't own.