the current logged on user does not have ownership privileges on the file (or folder) security error on Windows

Error message

the current logged on user does not have ownership privileges on the file (or folder)

Solution

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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>