Cách Take Ownership và Grant Full Control Permissions trong Windows 8

Cách Take Ownership và Grant Full Control Permissions trong Windows 8 

- Đơn giản phạm trù này là chuyến quyền file, giúp bạn có thể thao tác, xóa, chỉnh sửa,... các file hệ thống.
Cách thực hiện:
- Chuột phải trên file và thư mục và chọn Properties
- Đi tới Security tab> Advanced

Trong Advanced Security Settings lick vào Owner tab> Edit

- sau đó chọn Administrators....

- Click vào Other users or groups>OK

- Click OK tất cả cho tới bước 1: chuyển tới Security tab và chọn edit:

- Bạn sẽ cần chọn nhóm thành viên có quyền điều hành file và thư mục trong Group or user names
- Để toàn quyền thì nên chọn nhóm administrator.
- Trong Permissions for  bạn chọn Full Control tại cột Allow.
-Click OK để hoàn tất.
=============================
- Phương án sử dụng lệnh cmd:
+ mở cmd với run as administrator, di chuyển tới vị trí chưa file và thư mục cần full quyền (bạn cso thể làm điều này nhanh bằng cách chuột phải vào thư mục chứa file và thư mục cần full quyền và nhấn SHIFT+ chuột phải chọn Open command here)
+ với file thực hiện lệnh
Mã:
takeown /f  /d y
icacls /grant administrators:F
+ với thư mục
Mã:
takeown /f  /r /d y
icacls /grant administrators:F /t
++++++++++++++++++++++++++++++ ++
- Phương án sử dụng script:
Mở notepad lên, paste đoạn code sau vào:
Mã:
takeown /f %1 /r /d y
icacls %1 /grant administrators:F /t


- Save chúng thành file TakeControlOf.cmd
sau đó mở cmd với quyền admin lên, gõ lênh:
TakeControlOf


VD: TakeControlOf C:\Windows\Test_File.exe
TakeControlOf C:\Test_Directory
============================== ====
- Phương án sử dụng chuột phải menu:
- Mở notepad lê và paste đoạn code sau vào:
Windows Registry Editor Version 5.00
Mã:
[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"

Save nó thành file TakeOwnership.reg
Và chạy file này và hoàn tất:
Bạn có thể tải file trên tại:
Mã:
http://www.mydigitallife.info/wp-content/uploads/2011/04/TakeOwnership.zip