Command-line registry manipulation utility version 1.05. Copyright Microsoft Corporation 1997. All rights reserved. REG operation operation [ QUERY | ADD | UPDATE | DELETE | COPY | SAVE | BACKUP | RESTORE | LOAD | UNLOAD ] For help on a specific operation type: REG operation /? Examples: REG QUERY /? REG ADD /? REG UPDATE /? REG DELETE /? REG COPY /? REG SAVE /? REG BACKUP /? REG RESTORE /? REG LOAD /? REG UNLOAD /? REG QUERY RegistyPath [\\Machine] [/S] RegistryPath [ROOTKEY\]Key[\ValueName] ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ] Optional. When omitted HKLM is assumed. Key The full name of a registry key under the selected ROOTKEY. ValueName The value, under the selected Key, to query. Optional. When omitted all keys and values under the Key are listed. Machine Name of remote machine - omitting defaults to current machine. Only HKLM and HKU are available on remote machines. /S, /s Queries all subkeys. Examples: REG QUERY HKLM\Software\Microsoft\ResKit\Setup\InstallDir Displays the value of the InstallDir registry entry. REG QUERY HKLM\Software\Microsoft\ResKit\Setup /S Displays all keys and values under the Setup sub-key. REG ADD RegistryPath=Value [DataType] [\\Machine] RegistryPath [ROOTKEY\]Key\ValueName=Value ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ] Optional. When omitted HKLM is assumed. Key The full name of a registry key under the selected ROOTKEY. ValueName The value, under the selected Key, to add. Value The value to assign to the registry entry being added. DataType [ REG_SZ | REG_DWORD | REG_EXPAND_SZ | REG_MULTI_SZ ] If omitted REG_SZ is assumed. Machine Name of remote machine - omitting defaults to current machine. Only HKLM and HKU are available on remote machines. Examples: REG ADD HKLM\Software\MyCo\MyApp\Version=1.00 Adds the registry entry version=1.00 of type REG_SZ. REG ADD HKLM\Software\MyCo\MyApp\MRU=fax;mail;draft REG_MULTI_SZ \\ZODIAC Adds the registry entry MRU='fax mail draft' on machine ZODIAC. REG UPDATE RegistryPath=Value [\\Machine] RegistryPath [ROOTKEY\]Key\ValueName ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]. Optional. When omitted HKLM is assumed. Key The full name of the registry key under the selected ROOTKEY. ValueName The value, under the selected key, to update. Value The value to assign to the registry variable being updated. Machine Name of remote machine - omitting defaults to current machine. Only HKLM and HKU are available on remote machines. Examples: REG UPDATE Software\MyCo\MyApp\Timeout=10 Replaces the existing value for Timeout with 10. Defaults to HKLM. REG UPDATE HKLM\Software\MyCo\MyApp\MRU=fax;mail;draft Replaces the existing value for MRU with 'fax mail draft'. Note that MRU is assumed to be of type REG_MULTI_SZ for this example. REG DELETE RegistryPath [\\Machine] [/FORCE] RegistryPath [ROOTKEY\]Key[\ValueName] ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ] Optional. When omitted HKLM is assumed. Key The full name of a registry key under the selected ROOTKEY. ValueName The value, under the selected Key, to delete. Optional. When omitted ALL keys and values under the Key are DELETED. Machine Name of remote machine - omitting defaults to current machine. Only HKLM and HKU are available on remote machines. /FORCE Forces the deletion without asking if you are sure. Examples: REG DELETE HKLM\Software\MyCo\MyApp\Timeout Deletes the Timeout registry entry. REG DELETE HKLM\Software\MyCo \\ZODIAC Deletes the ENTIRE hive MyCo on ZODIAC. REG COPY Source [\\Machine] Destination [\\Machine] Where Source and Destination are in the RegistryPath format below. RegistryPath [ROOTKEY\]Key[\ValueName] ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ] Optional. When omitted HKLM is assumed. Key The full name of a registry key under the selected ROOTKEY. ValueName The value, under the selected Key, to copy. Optional. When omitted ALL keys and values under the Key are copied. Machine Name of remote machine - omitting defaults to current machine. Only HKLM and HKU are available on remote machines. Examples: REG COPY HKLM\Software\MyCo\MyApp HKLM\Software\MyCo\SaveMyApp Copies the key MyApp and all of its entries to SaveMyApp under MyCo. REG COPY Software\MyCo \\SAFARI Software\MyCo \\ZODIAC Copies the ENTIRE hive MyCo on SAFARI to MyCo on ZODIAC. REG SAVE RegistryPath FileName [\\Machine] RegistryPath [ROOTKEY\]Key ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ] Optional. When omitted HKLM is assumed. Key The full name of a registry key under the selected ROOTKEY. FileName The name of the disk file to save to without an extension. Machine Name of remote machine - omitting defaults to current machine. Only HKLM and HKU are available on remote machines. Examples: REG SAVE HKLM\Software\MyCo\MyApp AppBkUp Saves the hive MyApp to the file AppBkUp. REG SAVE HKLM\Software\MyCo MyCoBkUp \\ZODIAC Saves the hive MyCo on ZODIAC to the file MyCoBkUp also on ZODIAC. NT: On remote machines the file is written to the System32 directory. Win95: On remote machines the file is written to the Windows directory. SAVE is identical to BACKUP. REG BACKUP RegistryPath FileName [\\Machine] RegistryPath [ROOTKEY\]Key ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ] Optional. When omitted HKLM is assumed. Key The full name of a registry key under the selected ROOTKEY. FileName The name of the disk file to save to without an extension. Machine Name of remote machine - omitting defaults to current machine. Only HKLM and HKU are available on remote machines. Examples: REG BACKUP HKLM\Software\MyCo\MyApp AppBkUp Backs up the hive MyApp to the file AppBkUp. REG BACKUP HKLM\Software\MyCo MyCoBkUp \\ZODIAC NT: On remote machines the file is written to the System32 directory. Win95: On remote machines the file is written to the Windows directory. BACKUP is identical to SAVE. REG RESTORE FileName KeyName [\\Machine] FileName The name of the hive file without an extension. You must use Save or Backup to create this file. KeyName [ROOTKEY\]Key ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ] Optional. When omitted HKLM is assumed. Key The key name to restore the hive file into. Overwriting the existing key's values and subkeys. Machine Name of remote machine - omitting defaults to current machine. Only HKLM and HKU are available on remote machines. Examples: REG RESTORE NTRKBkUp HKLM\Software\Microsoft\ResKit Restores the hive file NTRKBkUp overwriting the subkey ResKit. REG RESTORE NTRKBkUp HKLM\Sofware\Microsoft\ResKit \\ZODIAC Restores the hive file NTRKBkUp overwriting the subkey ResKit on ZODIAC. REG LOAD FileName KeyName [\\Machine] FileName The name of the hive file without an extension. KeyName [ROOTKEY\]Key ROOTKEY [ HKLM | HKU ] Optional. When omitted HKLM is assumed. Key The key name to load the hive file into. Creating a new key. Machine Name of remote machine - omitting defaults to current machine. Only HKLM and HKU are available on remote machines. Examples: REG LOAD TempHive HKLM\TempHive Loads the hive file TempHive to the Key TempHive under HKLM. REG LOAD TempHive HKLM\TempHive \\ZODIAC Loads the hive file TempHive to the key HKLM\TempHive on ZODIAC. REG UNLOAD KeyName [\\Machine] KeyName [ROOTKEY\]Key ROOTKEY [ HKLM | HKU ] Optional. When omitted HKLM is assumed. Key The key name of the hive to unload. Machine Name of remote machine - omitting defaults to current machine. Only HKLM and HKU are available on remote machines. Examples: REG UNLOAD HKLM\TempHive Unloads the hive TempHive from HKLM. REG UNLOAD HKLM\TempHive \\ZODIAC Unloads the hive TempHive from the machine ZODIAC.