In win7, a virtual account, trustedinstaller, sometimes needs to modify or delete some system files/folders on drive C, "You need the permissions provided by trustedinstaller to modify this file" is displayed ". This method can be used to remove this restriction.Some files/folders that cannot be deleted in the system can be easily deleted using this method.
Method 1: simple and fast. Remember to perform the same steps on any win7 computer.
Right-click the file to be modified-attributes
Switch to the "Security" tab and click "advanced.
Switch to the "owner" tab
Generally, the default owner is trustedinstaller (no effect). Click "edit ".
In the displayed window, select the Login User Name of the current computer and click OK.
In the displayed dialog box, click OK.
Click OK for all the subsequent windows.
Right-click the file again, and choose Properties, security, and edit.
Select the current user name, select "allow" for full control, and click "OK ".
If this window appears, click OK.
Click "OK" to close the previous window, and you can modify or delete the file/folder as needed.
Method 2: Solve the problem once and for all.
Open notepad and copy and paste the following code:
======================================================= ==========
Windows Registry Editor Version 5.00
[Hkey_classes_root \ * \ shell \ RunAs]
@ = "Get trustedinstaller Permissions"
[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]
@ = "Get trustedinstaller Permissions"
"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"
======================================================= ==========
Save the file as a file with the extension Reg (note that all files (*. *) are selected in the SAVE type; otherwise, the file will be saved as a TXT file ).
Double-click the saved file.
Click Yes in the User Account Control Window.
? Click Yes in this window.
Success. Right-click any file or folder and choose "obtain trustedinstaller permission" from the menu. Click this option. If yes is displayed in the User Account Control window, then a black window appears (if the number of files to be processed is small, the black box will flash and even disappear). After the black window is closed, you can delete and modify the file/folder as needed.
This article by purplesword (jzj1993) original, reproduced please indicate the original web site http://blog.csdn.net/jzj1993