After making settings in the registry, in the context menu of files and folders, if you call it with held Shift , the item "Get access rights" will appear. The Administrators group will receive access rights. Using a function call, you can access protected system objects, files owned by other users, and so on.
If access to an object is denied by a group that includes the "Administrators" group, for example "Everyone" or "Verified Users", then access to the object will not be obtained, you must be sure to give them access.
Instead of the group SID (* S-1-5-32-544), you can write a symbolic value (without an asterisk): ... /grant All:F
Add to menu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\getaccess] @="Get access" "HasLUAShield"="" "Extended"="" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\*\shell\getaccess\command] @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant *S-1-5-32-544:F" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant *S-1-5-32-544:F" [HKEY_CLASSES_ROOT\Directory\shell\getaccess] @="Get access" "HasLUAShield"="" "Extended"="" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\Directory\shell\getaccess\command] @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant *S-1-5-32-544:F /t /c" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant *S-1-5-32-544:F /t /c" |
Remove from menu
1 2 3 4 |
Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\*\shell\getaccess] [-HKEY_CLASSES_ROOT\Directory\shell\getaccess] |