Manipulating Registry from a Batch file
REGEDIT /S addsome.REG Adds registry settings from a file
REGEDIT /E d:pathfilename.REG "HKEY_XXXXWhatever Key" Exports a a registry hive to file
Example of a registry import file
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon]
“AutoAdminLogon”=”1”
“DefaultDomainName”=”LABDOMAIN”
“DefaultUserName”=”user”
“DefaultPassword”=”password”
Deleting a registrykey
[-HKEY_CURRENT_USERDummyTree] Deletes the entire tree DummyTree
[HKEY_CURRENT_USERDummyTree] Deletes ValueToBeRemoved from DummyTree
“ValueToBeRemoved”=-
Leave a Reply