Since most of you will likely be simply copying registry keys, locations and values from sites such as this, here is how to go about adding them without the pain of using regedit.
Using scripts only requies notepad.exe or similar basic text editor.
-Each script must start with the declaration regedit4 OR Microsoft Windows Registry Editor Version 5.00.
This declares regedit is the target of the keys, and to add them.
-The file must be saved with a .reg extension, not the .txt that is standard with Notepad
I will design a useless key addition, which will show up, i’ll tell you where at the end. But in future registry hacks, i will also add the script version of the modification.
*You may wish to open regedit and follow along with each addition, seeing that it actually does what i claim :)
with those basics out of the way, here is how to add:
Folder Keys:
first define the path of the new folder or folders:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\BackDoors.§]
*since the folder BackDoors.§ does not really exist, this will create it.
It will also add a default registry key to the folder to define it as a registry value, we need not worry about this value.
Add Registry Path:
This is where you want your key or folder to point, in most cases this is not necessary, except to be thorough i am including it, we will use it to make it a member of a windows GUI list.
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons\\NewStartPanel"
note that the type and path are in ” “ since the path is a string it also requires \\ to represent \ similar to most programming languages.
Add Keys:
Since this example is adding to a GUI list it will require the following, also needed for keys implementing the RegPath listed above.
Text or Title:
"Text"="Does Nothing... Absolutly Nothing. §"
GUI Type:
based on the location of appearance, this calls for a checkbox.
"Type"="checkbox"
Value Name:
The value requires a name of the following convention
245FF040-5081-101B-9F07-00AA002F954Eto be implemented by the RegPath above.
"ValueName"="{}"
* Since I do not know if a random value will apply to something important or not, i have opted for the case of this useless box, to leave the key empty, but you will see the value it creates in the registry.
Assign Checked and Unchecked Values:
*since it is a checkbox it requires both definitions:
* Also notice here, that after the name of the key entry, the type is defined, set = equal to it’s key value."CheckedValue"=dword:00000000
"UncheckedValue"=dword:00000001
Assign A Default Value:
Since we are creating the key, we need to initialize it, you may pick either checked or unchecked for this (I have chosen unchecked):
"DefaultValue"=dword:00000001
Display the Item in List:
This last key is a formality to tell Windows where to put our key for this example:
"HKeyRoot"=dword:80000001
* Don’t worry about the value assigned to this key, there are many possible vales pending the loaction.
That’s it, now as promised, to see the results of this script:
In a Windows Folder Window Under:
Tools\Folder Options\
-click on the view tab.
The values here are in alphabetical order, so look for the string placed into the Text key it also has a checkbox beside it. This key does not do anything, but that can easily be changed knowing the proper ValueName and applying an appropriate Text to this GUI entry.
The Full Script:
* Keep in mind that many scripts can be added to a single file, the lead line REGEDIT4 need only be written once.REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\\BackDoors.§]
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons\\NewStartPanel"
"Text"="Does Nothing... Absolutly Nothing. §"
"Type"="checkbox"
"ValueName"="{}"
"CheckedValue"=dword:00000000
"UncheckedValue"=dword:00000001
"DefaultValue"=dword:00000001
"HKeyRoot"=dword:80000001
0 comments:
Post a Comment