1. 程式人生 > 實用技巧 >管理員獲得所有權_在Windows 7中獲得登錄檔項的所有權

管理員獲得所有權_在Windows 7中獲得登錄檔項的所有權

管理員獲得所有權

管理員獲得所有權

00_taking_ownership_of_key

We have previously written about how to take ownership of files and folders in Windows 7, but there may be times when you need to take ownership of or assign full permission for certain registry keys. This article shows you how to do this.

先前我們已經寫過關於如何在Windows 7中獲得檔案和資料夾所有權的資訊,但是有時您可能需要獲得某些登錄檔項的所有權或為其分配完全許可權。 本文介紹瞭如何執行此操作。

NOTE: Before making changes to the registry, be sure you back up the registry. We also recommend creating a restore point you can use to restore your system if something goes wrong.

注意:在更改登錄檔之前,請確保您備份了登錄檔。 我們還建議您建立一個還原點,以便出現問題時用於還原系統

To take ownership of a registry key, open the registry editor, if it is not already open. Type “regedit” in the Search box on the Start menu and pressing enter when regedit.exe is highlighted in the search results. You can also click on the regedit.exe link to open the registry editor.

要獲得登錄檔項的所有權,請開啟登錄檔編輯器(如果尚未開啟)。 在“開始”選單上的“搜尋”框中鍵入“ regedit”,然後在搜尋結果中突出顯示regedit.exe時按Enter。 您也可以單擊regedit.exe連結開啟登錄檔編輯器。

01_opening_registry_editor

If the User Account Control dialog box displays, click Yes to continue.

如果顯示“使用者帳戶控制”對話方塊,請單擊“是”繼續。

NOTE: You may not see this dialog box, depending on your User Account Control settings

.

注意:根據您的“使用者帳戶控制”設定,您可能看不到此對話方塊。

02_uac_dialog

Navigate to the key you want to take ownership of. For this example, we chose the following key:

導航到您要擁有所有權的金鑰。 對於此示例,我們選擇以下鍵:

HKEY_CLASSES_ROOT\DesktopBackground\Shell\Display

HKEY_CLASSES_ROOT \ DesktopBackground \ Shell \ Display

Right-click on the desired key and select Permissions from the popup menu.

右鍵單擊所需的鍵,然後從彈出選單中選擇“許可權”。

03_selecting_permissions_for_a_key

On the Permissions dialog box, click Advanced.

在“許可權”對話方塊中,單擊“高階”。

04_clicking_advanced

Click the Owner tab on the Advanced Security settings dialog box. Select the owner name in the Change owner to list box. If you want to take ownership of all the subcontainers and objects, select the Replace owner on subcontainers and objects check box.

單擊高階安全設定對話方塊上的所有者選項卡。 在將所有者更改為列表框中選擇所有者名稱。 如果要擁有所有子容器和物件的所有權,請選中“替換子容器和物件的所有者”複選框。

05_selecting_owner

If you want each child object (subkeys) of the selected parent object to have permissions inherited from its parent object, select the Include inheritable permissions from this object’s parent check box. If you want the permissions on the selected parent object to replace those on its descendant objects, select the Replace all child object permissions with inheritable permissions from this object check box. Click Apply to apply your changes.

如果希望所選父物件的每個子物件(子項)都具有從其父物件繼承的許可權,請選中“包括從該物件的父物件繼承的許可權”複選框。 如果希望所選父物件的許可權替換其後代物件的許可權,請選中“使用可繼承的物件替換所有子物件許可權”複選框。 單擊“應用”應用更改。

06_selecting_inherit_permission_options

A dialog box displays warning you that all subkeys of the object, in this case the Display key, will inherit permissions from the object. Click Yes if you want to accept this and continue.

將顯示一個對話方塊,警告您該物件的所有子鍵(在本例中為Display鍵)將繼承該物件的許可權。 如果要接受此操作,請單擊“是”,然後繼續。

07_do_you_wish_to_continue

Click OK to close the Advanced Security Settings dialog box.

單擊“確定”關閉“高階安全設定”對話方塊。

07a_clicking_ok

You are returned to the Permissions dialog box. Select the desired user name from the Group or user names list and select the check box under the Allow column for the Full Control row. Click OK.

您將返回到“許可權”對話方塊。 從“組或使用者名稱”列表中選擇所需的使用者名稱,然後選中“完全控制”行的“允許”列下的複選框。 單擊確定。

08_selecting_full_control

To close the Registry Editor, select Exit from the File menu.

若要關閉登錄檔編輯器,請從“檔案”選單中選擇“退出”。

09_closing_registry_editor

NOTE: Be careful when taking ownership of registry keys and changing them. If you are not sure what you are doing in the registry, it is best not to experiment with changing registry keys.

注意:擁有並更改登錄檔項的所有權時要小心。 如果不確定在登錄檔中正在做什麼,最好不要嘗試更改登錄檔項。

翻譯自: https://www.howtogeek.com/77878/take-ownership-of-or-assign-full-permission-for-a-registry-key-in-windows-7/

管理員獲得所有權