Takeown

Description

Enables an administrator to recover access to a file that previously was denied, by making the administrator the owner of the file. This command is typically used on batch files.

Commands

For folder

cmd>takeown /f folder_name /r /d y

For files

cmd>takeown /f file_name /d y

Source : microsoft

Date : 2020.10.13