Some additional notes for you Jay B.
The REG information you provided will work as is, but you should not in a typical Windows 10 installation, the HKEY's and Values it is adding to the Registry do not exist.
In your REG code you'll see a few entries such as this one:
Code:
[-HKEY_CLASSES_ROOT\*\shell\runas]
This command instructs the HKEY to be
deleted.
This in essence is not necessary, as the HKEY does not exist, but its possible the author of this REG code has updated a previous Registry Modification which created this and other keys, and hence needed to include it in the REG code.
So if we start with the premiss that none of the HKEYs or Values being added exist all ready, you could tidy up the REG code like so:
Code:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="Controle Total"
"Icon"="C:\\Windows\\System32\\imageres.dll,-78"
"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\Directory\shell\runas]
@="Controle Total"
"Icon"="C:\\Windows\\System32\\imageres.dll,-78"
"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"
[HKEY_CLASSES_ROOT\dllfile\shell\runas]
@="Controle Total"
"HasLUAShield"=""
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\dllfile\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\Drive\shell\runas]
@="Controle Total"
"Icon"="C:\\Windows\\System32\\imageres.dll,-78"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Drive\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"
This would achieve the same as the REG code you posted -
provided none of these HKEYs all ready exist from previous attempts to modify the Registry.
If you take a close look at your REG code you will see the following line of code appears
four times
If you change
each of the 4 lines like the above one to read: @="JAY B's Full Control" then your
right-click Context menu will display the following:
Now, because modifying the Registry can be risky, here is the REG code you need, should you later decide to
remove this option from the
right-click Context menu
Code:
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\runas]
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[-HKEY_CLASSES_ROOT\dllfile\shell]
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
One final note: As there are some circumstances where taking full control could potentially create System instability, I would highly recommend you create a restore point before taking full control of a file/folder.