Thorough system cleaning

»» 01.FEB.2024 / updated: --- ---/

Thorough system cleaning

After installing Windows 11 or 10, installing monthly updates, programs and drivers, you may notice that the size of the hard disk or SSD increases considerably, it may even increase by several GB, which slows down the performance of the computer because it loads unreasonably files that remain on your computer as junk or for excessive security reasons, unnecessary (usually deleted automatically after 30 days).

Caution: Manually removing and cleaning files and possibly system folders can cause a system crash that may involve reinstalling Windows, so it is recommended that you create a restore point from which the original state can be restored in case a cleaning error.

Windows 11 news in hungaryan language

Windows Blog-news

download Windows 10 ISO and updates

Windows 10 updates

download Windows 11 ISO and updates

Windows 11 updates

Quick Tip: Before cleaning manually, save all documents, images and videos to another partition (eg D:) or external data storage (eg pendrive).

These precautions are not necessary if instead of manual cleanup you run the "Cleanup-Image.cmd" file, which does a more thorough job, of course, however, a backup is always recommended.

Download file „Cleanup-Image.cmd”...

The first thing that will help reduce the size of the C: partition is to clean up the C:\Windows\WinSxS\ folder, which can be several GB in size if it hasn't been checked in a while. In addition to the WinSxS folder, the Downloaded Program Files folder, temporary files in the TEMP folder, and downloaded program and driver files can also increase the disk size if you rarely use cleanup programs.

Where are these folders located?

1.) – The Downloaded Program Files folder is located in the C:\Windows folder.

2.) – Drivers are stored in C:\Windows\System32\drivers folder.

3.) – Temporary files are in C:\Windows\Temp folder.

4.) – WinSxS folder files are stored in C:\Windows\WinSxS (manual deletion is not recommended).

The program that can be downloaded from the link below safely deletes the contents of downloaded program files, temporary files and driver folders (it does not delete installed drivers).

Download „Cleanup-Image.cmd” file...

Using the cleanup file:

Important: The file must be run as administrator. Right-click the downloaded "Cleanup-Image.cmd" file, and in the small mouse menu window that appears, click the "Run as administrator" link with the left mouse button.

You can immediately see in the command line window that the full disk cleanup is starting. You can continue to work on the computer, it does not determine the effectiveness of automatic cleaning.

command prompt window

Depending on the size of the disk, it may take between 3 and 10 minutes, depending on the amount of leftover files found on your computer.

Quick Tip: Don't close the window, if it doesn't seem to be doing anything. Performs the operation in the background. Finally, the window will close automatically.

Checking the cleanliness performed:

Each time the "Cleanup-Image.cmd" file with the /ResetBase option performs the requested cleanup operation, an entry with the exact date, hour, minute is added to the registry database. You can easily check the cleanup execution by opening the following path:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing

Opening the registration database:

Enter the regedit command in the taskbar search field and press Enter on the keyboard, then search for the above path in the window that appears, as shown in the image. The date and time are displayed on the right.

opening the database

Disk Cleanup tool:

The Disk Cleanup tool program built into the Windows system, performs a similar disk cleanup, but it is not as efficient and fast as the cleanup with the "Cleanup-Image.cmd" file described above.

Using the Disk Cleanup tool...