After the installation and optimization of Windows, it is time to clean up the unnecessary files of the hard disk. Deleting the unnecessary files, followed by a defragmentation of the hard disk improves system performances significantly. Do not expect any miracles, but every small improvement is important. In comparison to Windows XP, there are not that many files to delete safely in Windows Vista. Besides that, removing the files is not always that easy because they have been secured. But there are still files which can be deleted safely and create additional free space.
Disk Cleanup is available by right clicking the Windows partition (the C: partition in most cases) in the Windows Explorer and select Properties, tab General, button Disk Cleanup, option Files from all users on this computer. On the first tab select all categories of files (except the Office Setup files, these can still be of use later on) and delete the files by clicking OK.
|
|

Disk Cleanup does not delete all files, afterwards there are still many hidden files which are not deleted (for example check the properties of the folder for temporary internet files). Deleting the browsing history (the temporary internet files and cookies included) is done more effectively using the Internet Options in the Control Panel, button Delete, button Delete files and button Delete cookies. Unfortunately this procedure has to be done for each user account seperately.

The most important folders
The most important folders with (possibly
hidden) files to delete are on the following locations:
C:\Users\loginname\AppData\Local\Microsoft\Windows\Temporary Internet Files
C:\Users\loginname\AppData\Local\Microsoft\Windows\History
C:\Users\loginname\AppData\Local\Temp
C:\Users\loginname\AppData\Roaming\Microsoft\Internet Explorer\UserData\Low
C:\Users\loginname\AppData\Roaming\Microsoft\Office\Recent
C:\Users\loginname\AppData\Roaming\Microsoft\Windows\Cookies
C:\Users\loginname\AppData\Roaming\Microsoft\Windows\Recent
C:\Users\loginname\Searches
C:\Windows\Temp
The content of these folders can be deleted manually, therefore it is necessary to be able to view the protected and hidden files (available by Folder Options in the Control Panel, tab View). Tools like IE Privacy Keeper and Active@ Eraser are also able to delete those files easily (visit the page about deleting personal files and privacy issues for more information about these tools).
TIP: By right clicking a folder with files and select Properties you are able to view how much space can be recovered by deleting the files in the folder. By checking the additional free space after deleting the files in the folder, you are able to calculate how much space has actually became available. For example check the folder with temporary internet files after clearing the folder using Disk Cleanup. As you will see, the folder is not empty taken the folder size into account, but while opening the folder the files are not visible. Deleting those invisible temporary internet files is done by using the Internet Explorer (Tools, Internet Options, tab General, button Delete).
C:\HIBERFIL.SYS (hidden, as big as the available RAM memory)
The hibernation file is a copy of the total RAM memory, which is used to recover
the computer from sleep (also known as hibernation). Hibernation is especially used for laptop
computers to save battery power, bus frequently used on desktop computers as
well. Enabling and disabling the hibernation
is done in the task pane of Power Options in the
Control Panel. If hiberantion is not used, it is safe to disable it (if not done
already). The filesize of HIBERFIL.SYS equals the total of RAM memory, so
deleting the file will save a lot of space!
Deleting the hibernation file is done most easily by the above mentioned tool
Disk Cleanup.
TIP: When the hibernation file has been deleted, but you would like to apply the hibernation feature? The command POWERCFG /hibernate ON in the Command Prompt (start menu, All programs, Accessories) will bring back the hibernation file. Start the Command Prompt with additional administrator rights by right clicking it and to select Run as administrator!
C:\System Volume Information (hidden)
This folder is necessary for the Windows Vista System Restore (and the
use of shadow copies to restore previous versions of files). By default, the system recovery is only applied
to the Windows partition (in most cases C:), but it is also possible to enable
it for the other partitions (by System in the Control Panel,
task Advanced system settings in the taskpane,
tab System Protection).By
disabling System Restore for
every partition/disk, the earlier created restore points (necessary for the
recovery of unwanted system changes) are deleted
and the folder System Volume Information
will be emptied (but not deleted!). After disabling System Restore and
deleting the restore points as a result, it is no longer possible to recover
from any unwanted system changes! If System Restore has been turned on
again, a new restore point is created by clicking the button Create.
C:\PAGEFILE.SYS (virtual memory)
The paging file (the 'virtual memory') is stored on the hard disk and is
therefore slower then the RAM memory. The paging file is only used in addition
to the available RAM memory in case there is not enough RAM memory to run the
tasks of that moment. The paging file PAGEFILE.SYS is stored on the root
of the Windows partition by default. If there is a lot of RAM memory available (2 Gb or more),
and there are no programs requiring a lot of memory (like picture and video
editing software), it is safe to restrict the use (or even disable) the page
file. It is also possible to move the paging file to a (faster) partition.
Changing the paging file settings is discussed on the page about
optimizing the
Windows Vista settings.
C:\Windows\SoftwareDistribution
The folder SoftwareDistribution stores the
Windows/Microsoft Update
information including the downloaded and already installed updates. In time this
folder will become larger and larger as a result of many updates. Although this
information is not that important, it is not that easy to empty this folder.
Before deleting the folder SoftwareDistribution, it is necessary to stop
the service Windows
Update first (right click the service and select Stop, for more
information visit the page about
optimizing the Windows services).
After a few seconds the whole folder C:\Windows\SoftwareDistribution
(subfolders included) can be deleted, folowed by a restart of the service (or a
restart of Windows). After the service is active again, this folder is recreated.
Because the update history and settings are gone, start Windows update to make
sure the update procedure still works fine. To upgrade Windows update to
Microsoft Update, to receive updates of more Microsoft products, click the
option Get updates for more products and accept the terms of use.
Be aware that this procedure solves many Windows Update problems!
Delete the SP1 undo files
When the installation of SP1 has been finished successfully, then the uninstall
files could be deleted. This will free almost 1 Gb of disk space! To cleanup the
undo files, type the command VSP1CLN (in the start menu at Start Search).
After pressing the Y-key for approval, the undo files will be deleted
permanently.

Windows Media Center media samples
The folder C:\Users\Public\Recorded TV\Sample Media contains some default
media samples which can be deleted safely.
Recycle Bin
Probably not necessary to tell,
but make sure the Recycle Bin is empty. This is done by right clicking the
Recycle Bin on the desktop, option
Empty Recycle Bin.
A tip for quickly deleting files and folders: the key combination
SHIFT-DEL
deletes without moving files and folders to the
Recycle Bin.
Before imaging the Windows partition, it is wise to defragment this partition first. A partition which is fragmented contains many files which are split up in fragments. This happens when the first available free area to store a file is not large enough to store the whole file. The remaining part is saved on the next available free area, which goes on until the whole file has been written to the partition. Because larger files take more space to save, they probably will be more fragmented. If the fragmented files are used frequently by the system, it will take relatively a lot of time to read them which will delay the processing. Defragmenting the hard disk will defrag those files which can improve the system perfomance significantly.
By default, defragmenting takes place weekly as a background task. Because defragmenting has a low priority, it is normally not noticed by the user. Is the automatic defragmentation disabled or is the computer normally switched off at the moments defragmenting is planned it is also possible to start the defragementing manually by the start menu, All Programs, Accessories, System Tools, sub Disk Defragmenter.

Click the button Defragment now in the Disk defragmenter window to start the defrag of all partitions manually. The button Select volumes makes it possible to select/deselect partitions to defrag. The defragmentation tool does not show the progress, like it does in Windows XP. If this is a desired behaviour, try the defragmentation tool Vopt (download: www.vopt.com) as a free alternative. If alternative defragmentation software is used, deactivate the automatic defragmentation by Windows to prevent the unnessecairy moving of files. This is done by deselecting the option Run on schedule (recommended) in the Disk defragmenter window shown above. Daarmee wordt voorkomen dat de bestanden wekelijks naar een nieuwe locatie worden verplaatst.
Defragmenting the Windows register will save system resources. On a newly installed Windows Vista, it is common to be able to compress the register by 10% or more. NT Registry Optimizer (download: www.snapfiles.com) is a freeware tool to do this job quickly. To get access to the registry files, it is necessary to run this tool as administrator (right click the program and select Run as administrator). Visit the page about editing and defragmenting the registry for more information concerning this subject.
Home Preparing a reinstallation Windows XP Windows Vista Security Software Miscellaneous WWW