Take ownership of a file or directory. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/takeown.
takeown /f {{path\to\file}}
takeown /d {{path\to\directory}}
takeown /r /d {{path\to\directory}}
takeown /a /f {{path\to\file}}