the current logged on user does not have ownership privileges on the file (or folder)
Make sure your command prompt is elevated, otherwise it won’t have admin rights even though you are an “admin”.
To open an elevated command prompt, search for cmd in your start menu and press CTRL + SHIFT + ENTER or right click on it and choose Run as administrator.
Confirm it is elevated by looking for “Administrator:” prefixed to the window title.
TAKEOWN /F <DIRECTORY> /R /D Y