View Single Post
  #4  
Old December 4th 17, 11:46 PM posted to alt.windows7.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default Win7 Registry Size

Ed Cryer wrote:
Mike S wrote:
On 12/4/2017 1:17 PM, Ed Cryer wrote:
I recently noticed just how much left-over rubbish there is in my
system's registry. It's 6 years old, never cleanly reinstalled, never
treated with snake-oil.
I'm not aware of any problem with it; no slow-down detected.
I used regedit, exported it, checked file size and it's 273 MB.

How does this compare with other users? I'd like to know.

Ed


I ran a powershell script and it reported 153 MB. w7 ult x64, been
running alittle over a year, Office, Photoshop, Visual Studio, several
browsers. I've cleaned it with ccleaner maybe half a dozen times.

$data=Get-WmiObject -Class Win32_Registry -ErrorAction Stop
#Format the results and write an object to the pipeline
$data | Select-Object -Property
@{Name="Computername";Expression={$_.__SERVER}},
Status,
@{Name="Current Size (Mb)";Expression={$_.CurrentSize}},
@{Name="Max Size (Mb)";Expression={$_.MaximumSize}},
@{Name="Free Size (Mb)";Expression={$_.MaximumSize - $_.CurrentSize}},
@{Name="Percent Free (%)";Expression={ (1 -
($_.CurrentSize/$_.MaximumSize))*100 }},
@{Name="Created";Expression={$_.ConvertToDateTime( $_.InstallDate)}},
@{Name="Age";Expression={(Get-Date) - (
$_.ConvertToDateTime($_.InstallDate)) }}

https://superuser.com/questions/3742...ze-of-registry


Interesting.
I ran Ccleaner, checked with regedit's export again, and got 270MB.

Then I ran your script and got this;
Current Size (Mb) : 200
Max Size (Mb) : 2048
Free Size (Mb) : 1848
Percent Free (%) : 90.234375
Created : 23/11/2011 15:05:46
Age : 2203.06:34:40.5049752

That's not much above your size after one year.
I wonder which method is giving the true size.

Ed


They're just files in the file system.

https://en.wikipedia.org/wiki/Windows_Registry

File Locations
--------------

...The location for system registry files in Windows NT
is %SystemRoot%\System32\Config;

the user-specific HKEY_CURRENT_USER user registry hive
is stored in Ntuser.dat inside the user profile.

Windows NT
----------

Sam – HKEY_LOCAL_MACHINE\SAM
Security – HKEY_LOCAL_MACHINE\SECURITY
Software – HKEY_LOCAL_MACHINE\SOFTWARE \___ largest files...
System – HKEY_LOCAL_MACHINE\SYSTEM /
Default – HKEY_USERS\.DEFAULT
(Userdiff – Not associated with a hive)

%USERPROFILE%\Ntuser.dat - HKEY_CURRENT_USER

Usrclass.dat - HKEY_CURRENT_USER\Software\Classes

The later OSes seem to have a few additional files
implying journaling. This is an attempt to make
it harder to damage the files (due to, say, a dirty
shutdown).

So if you don't need information to the nearest byte,
about the logical size of the registry, glancing at
the files themselves will give you some idea. In the
ones I was just looking at, there wasn't much there.
I guess I'm not adventurous enough, as I don't think
I've ever seen a registry set that was out of control.
Maybe a SOFTWARE file that was 25MB or so. Which is
nothing, compared to what other people have got.

*******

And another set of registry files is located in C:\WINDOWS\repair.
Those are "empty" files, and are only good enough for tipping
an OS upright again. They don't have all your settings, so
they're not intended for any long term usage. You use a restore
point, to replace those when the system finally boots.

Paul
Ads