How can I determine the amount of data stored in the registry?

John Savill

October 23, 2005

1 Min Read
ITPro Today logo

A. Microsoft has a command-line tool called DuReg, which you can download at http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/dureg-o.asp. You can use DuReg to displays the total size of the registry or just the size of a particular part. Execute the downloaded file to install the application to the %SystemDrive%Program FilesResource Kit folder.

To retrieve the size of the entire registry, use the command with the /a switch, as the following example shows:

C:Program FilesResource Kit>dureg /a

Which will display the following output:

Size of HKEY_CLASSES_ROOT : 10259940
Size of HKEY_USERS : 2269159
Size of HKEY_LOCAL_MACHINE : 22187727
Total Registry data size: 34716826

To return the size of only a particular portion of the registry, use the command with the switch that specifies the portion of the registry (/cr for HKEY_CLASSES_ROOT, /cu for HKEY_CURRENT_USER, /u for HKEY_USERS, and /lm for HKEY_LOCAL_MACHINE) followed by the subfolder. For example, to determine the size of HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion, you use this command:

C:Program FilesResource Kit>dureg /lm    "SOFTWAREMicrosoftWindowsCurrentVersion"

which will display the following output:
Size of HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion: 1923887

About the Author(s)

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like