How to edit the Windows Registry without opening regedit.exe
You can edit the Windows Registry with the help of Console Registry Tool or reg.exe. Reg.exe is a command-line utility with which you can perform almost all the task which you otherwise can with regedit.exe.
Reg.exe can be useful when you want to quickly make a change to the Windows Registry without opening registry editor and moreover and has the additional facility of being directly usable in scripts.
To run the reg.exe, open cmd, type reg /? and hit Enter. This will show you the parameter list, syntax & the return codes.
The reg commands include:
Reg add
Reg delete
Reg compare
Reg copy
Reg export
Reg import
Reg load
Reg query
Reg restore
Reg save
Reg unload.
For instance:
To add a new subkey or entry to the registry use:
reg add
Examples:
To add the key HKLM\Software\MyCo on remote computer ABC, type:
REG ADD \\ABC\HKLM\Software\MyCo
To add a registry entry to HKLM\Software\MyCo with a value named Data of type REG_BINARY and data of fe340ead, type:
REG ADD HKLM\Software\MyCo /v Data /t REG_BINARY /d fe340ead
To add a multivalued registry entry to HKLM\Software\MyCo with a value name of MRU of type REG_MULTI_SZ and data of fax\0mail\0\0, type:
REG ADD HKLM\Software\MyCo /v MRU /t REG_MULTI_SZ /d fax\0mail\0\0
To add an expanded registry entry to HKLM\Software\MyCo with a value name of Path of type REG_EXPAND_SZ and data of %systemroot%, type:
REG ADD HKLM\Software\MyCo /v Path /t REG_EXPAND_SZ /d ^%systemroot^%
To delete a subkey or entries from the registry use:
Reg delete
Examples:
To delete the registry key Timeout and its all subkeys and values, type:
REG DELETE HKLM\Software\MyCo\MyApp\Timeout
To delete the registry value MTU under HKLM\Software\MyCo on the computer named ZODIAC, type:
REG DELETE \\ZODIAC\HKLM\Software\MyCo /v MTU
For a full read & details visit Microsoft Technet.
| Print article | This entry was posted by admin on 08/01/11 at 10:29:00 am . Follow any responses to this post through RSS 2.0. |
TagCloud
cloud computing dual boot microsoft cloud microsoft windows azure types of cloud services usb drive windows 8TagCloud by Tears
Tag cloud
«cloud computing» «dual boot» «microsoft cloud» «microsoft windows azure» «types of cloud services» «usb drive» «windows 8»


Khej Blogs
Source Tips - Source of Technology Tips