Share via

I need permission from [myself] to make changes to a file (Windows 10)

Anonymous
2018-02-10T10:47:02+00:00

I'm trying to delete a folder left over from a very old Windows install. Despite being an admin I cannot delete the folder/files. This is despite having taking ownership of them via permissions (e.g. https://www.drivereasy.com/knowledge/you-require-permission-from-trustedinstaller-error-fixing-guide/)

Here's an old thread with a solution to the problem that sort of worked for me:

https://answers.microsoft.com/en-us/windows/forum/windows_7-security/i-need-permission-from-myself-to-make-changes-to-a/373e48c0-fa16-4e67-b7c2-dabf4a505ad5?auth=1

Only problem is that the commands aren't quite valid (anymore?). What are the correct commands?

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2018-02-10T10:53:34+00:00

    Glad you asked:

    1. Click Start.
    2. Type the three letters cmd into the Search box.
    3. Click "Run as Administrator".
    4. Type the following commands and press Enter after each:

    takeown /f "FULL PATH TO FOLDER" /a /r /d y

    (This command seized ownership of your temp folder)

    icacls "FULL PATH TO FOLDER" /t /c /grant administrators:(X) System:F everyone:F

    (This command granted full access to the temp folder for everyone)

    Note: FULL PATH TO FOLDER is simply that, the full path to the folder.

    Let's say you're trying to delete Old Windows from C:. Your full path would be:

    "C:\Old Windows"

    Afterwards you can proceed to delete files and folders as usual.

    40+ people found this answer helpful.
    0 comments No comments