WIN7 operating platform to obtain administrator rights batch

  
Open some files on the WIN7 operating platform, if you need administrator privileges to open. You can get administrator privileges by creating the batch register file. The file content is, the file suffix is ​​.reg. Then double-click on the file. Open the file you need to access. If you need administrator rights, select the file, right-click, select the administrator to get all permissions, then cmd will pop up, then you will find that cmd is executing the command. Don't worry, you are getting access. File permissions. Wait a little while, you can open the file you want to open. Www.dnzg.cn The following commands are very useful. [java] Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\\*\\shell\ unas] @="Administrator Takes 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" [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" "NoW orkingDirectory"="" [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"
Copyright © Windows knowledge All Rights Reserved