Want an example of how to use the takeown command to take ownership of all files in a directory? Here’s how to use the takeown command to take ownership of all sub files within a directory without being prompted for each one!
takeown /f “C:\Folder I want to take ownership of” /r /d Y
Be sure to run the command prompt as administrator (run as administrator, elevated), otherwise you’ll get Access is denied.