Permissions Required To Delete

Windows 7 can be a serious pain in the ass when deleting files. This may help:

  1. Take ownership of the file(s). Start a Command Prompt (cmd) as an administrator in the affected folder, and enter:
    takeown /f file takeown /f directory /r 
  2. Give yourself full rights on the file:
    cacls file /G username:F 

cacls can be used with wildcards and directory traversal: Security from the command line with CACLS.

 

Leave a Reply

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