5.00 [HKEY_CLASSES_ROOT\*\shell\runas] @="管理员授权" "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\exefile\shell\runas2] @="管理员授权" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\exefile\shell\runas2\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] @="管理员授权" "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"

1.新建一个a.txt,保存如上代码。
2.修改扩展名为 .reg
3.运行a.reg

相关文章:

  • 2021-12-26
  • 2021-11-21
  • 2021-05-02
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-12-30
猜你喜欢
  • 2022-01-15
  • 2021-10-10
  • 2021-12-26
  • 2021-12-26
  • 2021-11-20
  • 2021-12-26
  • 2021-12-07
相关资源
相似解决方案