How to delete certain files in win7 requires the trustedinstaller permission

Source: Internet
Author: User
Tags zip folder trustedinstaller


How to delete some files in win7 requires the trustedinstaller permission to install a dual system, and then to delete a system for some reasons, the system is on the drive C, the system to be deleted is on the drive D, however, when you delete the system files in drive D, you can find a method to obtain folder permissions by searching the network for a long time by "you require permission from trustedinstaller to make change". The Code is as follows (Registry):
Windows Registry Editor Version 5.00 www.2cto.com [HKEY_CLASSES_ROOT \ * \ shell \ runas] @ = "Take Ownership" "NoWorkingDirectory" = "" [HKEY_CLASSES_ROOT \ * \ shell \ runas \ command] @ = "cmd.exe/c takeown/f \" % 1 \ "& icacls \" % 1 \ "/grant administrators: F "" IsolatedCommand "=" cmd.exe/c takeown/f \ "% 1 \" & icacls \ "% 1 \"/grant administrators: F "[HKEY_CLASSES_ROOT \ Directory \ shell \ runas] @ =" Take Ownership "" NoWorkingDirectory "=" "[HKEY_CLASSES_ROOT \ Directory \ shell \ runas \ command] @ =" cmd.exe/c takeown/f \ "% 1 \"/r/d y & icacls \ "% 1 \"/grant administrators: f/t "" IsolatedCommand "=" cmd.exe/c takeown/f \ "% 1 \"/r/d y & icacls \ "% 1 \"/grant administrators: f/t "www.2cto.com -- uninstall the Registry File Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT \ * \ shell \ runas] [-HKEY_CLASSES_ROOT \ Directory \ shell \ runas]
For ease of use, you can make the code into a reg file and add it to the right-click menu. the zip folder is provided below. Of course, you can also create a new notepad and copy the above Code to the file, double-click can be added to the Registry. Andy Lau, http://files.cnblogs.com/xirongliu/win7-trustedinstaller.zip of win7_TrustedInstaller.zip

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.