Where does windows add right-click admin rights? How to add?

  

Even if an admin user logs in to win system, he will encounter permission problems when processing some files on a daily basis. Here's a simple way to share the two methods of how to add right-click admin rights, friends who can not refer to this article, I hope to help everyone!

Tools/Materials

Win7 system as an example; text document; related optimization software.

Method 1: Registry Method

1, create new text, open, paste the following code:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\\* \\shell\ unas]

@="Add admin rights"

"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\\*\\shell\ unas \\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\\exefile\\shell\ unas2]

@="Add Administrator Permissions"

"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT \\exefile\\shell\ unas2\\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\ unas]

@="Add Administrator Permissions"

"NoWorkingDirectory"="" ;

[HKEY_CLASSES_ROOT\\Directory\\shell\ unas\\command]

@="cmd.exe /c takeown /f \\"%1\\" /r /dy & & icacls \\"%1\\" /grant administrators:F /t"

"IsolatedCommand"="cmd.exe /c takeown /f \\"%1\\" /r /dy && icacls \\"%1\\" /grant administrators:F /t"

2, then save, rename, change the file extension “.txt” “.reg”, double-click to add;

3, if the suffix is ​​not displayed, you need to display the suffix in the "Organization", “ folder option> Win10 system is checked under the view of the "file extension" "can be;

Method 2: Software method

With some optimization software, you can quickly and easily add right-click administrator Permissions, as shown;


Remove right-click management permissions

So, how to remove the right-click admin rights? The software method can be ticked off and applied. The registry code is as follows:

Windows Registry Editor Version 5.00[-HKEY_CLASSES_ROOT\\*\\shell\ unas][-HKEY_CLASSES_ROOT\\exefile\\shell\ unas2][-HKEY_CLASSES_ROOT\\ Directory\\shell\ unas]

Software rules can uncheck this feature.

Notes

Registry method Note the format can be as shown.

The above is the introduction of the right-click administrator permission method for windows. Have you learned it? I hope this article can help everyone!

Copyright © Windows knowledge All Rights Reserved