HOME

Monday, December 31, 2007

How Access Registry Using Command Prompt

Firstly, you need to know that regedit.exe is a tool that created to access registry based on windows. And reg.exe is a tool that created to access DOS based registry. And maybe a lot of you didn't know about that, so this step by step to access registry using command prompt :

1. Enter the DOS console ( Command Prompt, MS-Dos Prompt )
2. Enter command : reg, then you will see
example of command that you can use to gain access to windows registry such as :
query, add, delete, copy, save, import, unload, etc.
3. And with these simple command you can access DOS based registry :
HKCR = HKEY_CLASSES_ROOT
HKCU = HKEY_CURRENT_USER
HKLM = HKEY_LOCAL_MACHINE
HKU = HKEY_USERS
HKCC = HKEY_CURRENT_CONFIG
Data type :
REG_SZ = String value
REG_MULTI_SZ = Multi-string value
REG_DWORD = DWORD VALUE
REG_BINARY = binary value
REG_NONE = none value

4. Example :
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System"/v
DisableRegistryTools /t reg_dword/ d 1 / f

That command will disable windows registry, and to make enable we can use this :

reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System"/v
DisableRegistryTools /t reg_dword/ d 0 / f

5. This technique will be very usefull against virus that ussually blocked many
things, but you shoul be carefull that maybe virus can use reg.exe to activate
those virus itself.
6. So, I suggest you to make a copy or backup to your registry file.

2 comments:

Best 'n' Best said...

Your Information Is Most Useful To me....
Thank you

Best 'n' Best said...

Your Information Is More Useful To me....
Thank you Very Much!!!!!!!