Modify Windows Registry via Reg File

Every windows system admin may need to work with registry for some purposes. At least, all group policies or most installed programs make modifications in it.
To make changes in registry, “regedit” command is rather helpful. It also opens a gui if run without parameter. However, for bulk or repeating modifications, using a file can be better. Here is how to make use of it :

regedit /S file.reg


Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers]
[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers]
[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default\AddIns]
[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default\AddIns\RDPDR]

For detailed info, please check this link:,-modify,-or-delete-registry-subkeys-and-values-by-using-a-.reg-file