What to do if you do not have permission to delete files (such as Windows folders) that were left over from previous systems

Source: Internet
Author: User

These files are often system files, the file owner is the administrator of the previous system, the current system administrator does not have permission to delete, and force the current system administrator to join the permissions are often invalid. You need to go in two steps at this point:

To change the file owner, you need to find the command prompt in the Start menu, right-click and run with administrative privileges. Prompt Using the CD command to enter a folder that contains hard to delete, enter the command:
takeown/f file or folder name/r/d N


Second, add full control to the System Administrators group (Administrators). Continue typing in just the command prompt window:
icacls file or folder name/grant Administrators: (F)/T
Then try to delete it, which is usually solved.

What to do if you do not have permission to delete files (such as Windows folders) that were left over from previous systems

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.