PalmaSolutions

Grant Full Control To Admin

Apr 26th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Windows Registry Editor Version 5.00
  2.  
  3. [HKEY_CLASSES_ROOT\*\shell\runas]
  4. @="Grant Admin Full Control"
  5. "NoWorkingDirectory"=""
  6.  
  7. [HKEY_CLASSES_ROOT\*\shell\runas\command]
  8. @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
  9. "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
  10.  
  11. [HKEY_CLASSES_ROOT\exefile\shell\runas2]
  12. @="Grant Admin Full Control"
  13. "NoWorkingDirectory"=""
  14.  
  15. [HKEY_CLASSES_ROOT\exefile\shell\runas2\command]
  16. @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
  17. "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
  18.  
  19. [HKEY_CLASSES_ROOT\Directory\shell\runas]
  20. @="Grant Admin Full Control"
  21. "NoWorkingDirectory"=""
  22.  
  23. [HKEY_CLASSES_ROOT\Directory\shell\runas\command]
  24. @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
  25. "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
Add Comment
Please, Sign In to add comment