"SomeVariableName" = dword: 00000000
[HKEY_LOCAL_MACHINESOFTWAREANOTHERKEY]
"SomeValue" = dword: 00000001
Here's an example to make it easier for you to understand. First open the Registry Editor and browse to the following key on the left. This key determines whether the User Account Control disappears from the screen when a window appears.
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
Now Export from the System key on the left hand side. Open the registry hack file and you will see PromptOnSecureDesktop included in the file, but what about all other things?
If you bring this registry hack file to another computer and import it, everything else under the key that has been set up on this computer will be set up on the new computer. For example, in your hack file there is the EnableLUA key used to enable or disable UAC. If you want to set the Secure Desktop value and don't want to change UAC on another computer, you can change that value along with other things in the file.
To do this, you only need a text editor, deleting everything that is not the value you want to install. In this case, you need to delete everything except this unique value.
One thing to note is that you cannot delete the first line and line [HKEY_LOCAL_MACHINESOFTW . .etc] directly above the value because Registry Editor needs to know where to set the value.
If there is a hack file NoAutoReboot you want to add a Secure Desktop hack file, the process is simple, just remember the rule: the Windows Registry Editor version 5.00 should be in the file and in the first line then copy and paste file together.
In some cases the registry hack file requires the creation of a new non-existent key and changing the installation requires deleting that registry key. How to do it is quite simple, you need to export the key and change the value so that it is only a minus sign.
For example:
'NoAutoRebootWithLoggedOnUsers' = dword: 00000001
Will become
'NoAutoRebootWithLoggedOnUsers' = -
So what if you want to delete the registry key instead of the value? The registry key is the one on the left side of the Registry Editor. Again it involves the minus sign icon placed in a registry hack file. So if you want to delete the entire key as shown in the screenshot above, you need to change it from:
[HKEY_LOCAL_MACHINESOFTWAREPoliciesMic .]
City:
[-HKEY_LOCAL_MACHINESOFTWAREPoliciesMic .]
Do you see the minus sign here? It will tell Registry Editor to completely delete the key and value below it.
However, you need to use it very carefully because it may lead to system failure.
I wish you all success!