How to add administrator rights to win7 system right?

  

win 7 There is no option in the right-click menu to "Run as administrator" & rdquo; Create a new item in the registry and add a menu to run as an administrator.

1. Right click on any file, not every menu has a sub-item running as an administrator.

2, you can set this: use the right mouse button to click on the blank space of the desktop, and click New → Text Document in the pop-up menu.

3, first copy the following command, then paste it in the open notepad.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\\*\\shell\ unas]@="Administrator Ownership""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"

[ ,null,null,3],HKEY_CLASSES_ROOT\\exefile\\shell\ unas2]@="Administrator Ownership""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]@="Administrator Ownership" "NoWorkingDirector y"=""

[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"

4, then click on File &rarr on the toolbar; Save As.

5. In the pop-up settings box, enter the file name (admin) and extension (reg) → save.

6, then, double-click the newly created administrator.reg file to register → yes.

7, registration success & rarr; ok.

8, then use the right click on the file, there is a child running as an administrator, it is more convenient to use. By default, only some of the right-click menus have administrator-privileged menus. In this way, all of the right-click menus have administrator submenus.

Related recommendation:

Win7 right mouse button can not be used to solve the problem?

Win7 right menu can not find a shortcut to create a new BMP image?

Copyright © Windows knowledge All Rights Reserved