The forum of documents and methods for study - Lượm lặt kiến thức

Xóa thư mục / file trong ổ đĩa hệ thống


Nam Libra Monkey
Tổng số bài gửi : 1457
Tiền xu Ⓑ : 3696
Được cảm ơn № : 2
Ngày khởi sự Ngày khởi sự : 07/01/2013
Đến từ Đến từ : HCMC
Côngviệc / Sởthix Côngviệc / Sởthix : Languages, Softwares, Sciences, Martial arts

Xóa thư mục / file trong ổ đĩa hệ thống Empty Xóa thư mục / file trong ổ đĩa hệ thống

Bài gửi by QaniTri on 26th November 2015, 21:05

Did you know that a lot of files in Windows 7 are not owned by you, even if you are the Administrator? They are instead owned by an entity called the “Trusted Installer”. Such a wonderful sounding name eh!
So that’s not a problem most of the time, unless you need to delete certain system files and folders. You’ll end up getting a message like:
You do not have permission to perform this action.
or something like:
You need authorization from TrustedInstaller in order to perform this action.
Thanks Windows! So in order to delete a file that is owned by TrustedInstaller, you have to first take ownership of the files or folders and then grant yourself full control permissions and rights!
You have to do all of that just to be able to rename, delete, or edit these files and folders. In this article, I’ll walk you through the steps in order to do this.
First, go to the folder or set of files that you need to change permissions for, right-click on them and choose Properties.
Xóa thư mục / file trong ổ đĩa hệ thống Windows7trustedinstaller_thumb
Next click on the Security tab and then click on the Advanced button at the bottom:
Xóa thư mục / file trong ổ đĩa hệ thống Cannotperformaction_thumb
Next click on the Owner tab and you’ll now see that the current owner is TrustedInstaller.
Xóa thư mục / file trong ổ đĩa hệ thống Trustedinstallerwindows7_thumb
Now click on the Edit button and choose who you would like to change the owner to, either your account or the Administrators. If your account is an Administrator account, I would suggest just picking Administrators.
Xóa thư mục / file trong ổ đĩa hệ thống Changeownerwindows7_thumb
You can also check off Replace owner on subcontainers and objects if you need to delete more than one file in a folder. Go ahead and click OK. Now you will see that the Current owner is the account you picked.
Xóa thư mục / file trong ổ đĩa hệ thống Cannotdeletefileswindows7_thumb
Click OK until you have closed all properties windows and are back to the Windows Explorer screen. Then right-click on the folder or file again and choose Properties again.
Now click on the Security tab again, but instead of clicking on Advanced, you need to click the Edit button.
Xóa thư mục / file trong ổ đĩa hệ thống Windows7permissions_thumb
Now click on the user name in the list that you want to change the permissions for, which should be the same as who you changed the current owner too. If the user name is not in the list, click Add, type in the name and click OK.
Xóa thư mục / file trong ổ đĩa hệ thống Changepersmissionswindows7_thumb
Since I had changed the current owner to Administrators, I clicked on Administrators here and then clicked on the check box next to Full Control. When you do that, all the other boxes get checked too.
Click OK once and then click OK one more time to get back to Windows Explorer. Now you can delete those files without any UAC messages telling you that you can’t! Enjoy!

    Hôm nay: 23rd July 2019, 13:51