Memorise

Can’t delete file or take Ownership

First check file is not open anywhere, you can check if fileshare location in share & storage location and look for open files.

C:\Users\You\Downloads\abctest.jpeg
Type the following command, and then press ENTER to grant

administrators full access to the file:

icacls Path_And_File_Name /GRANT ADMINISTRATORS:F

For example, type:
icacls C:\Users\You\Downloads\abctest.jpeg /grant administrators:F

Then try to delete abctest.mp3.
also you can try the following from the cmd window:

C:\Program Files (x86)>takeown /F C:\Users\You\Downloads\abctest.jpeg /R /A

 


Categorised as: Microsoft


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.