Clear System Logs Windows 7
Apr 29, 2011 Clear Security Log on Windows 7, Vista, XP by Nik Published April 29, 2011 Updated February 19, 2015 You might receive a message that Security Log is full when you login into Windows 7 or other Windows OS.
Disk Cleanup's new feature called Windows Update Cleanup is standard in Windows 8 and Windows 8.1 and was added to Windows 7 by an update that was made available in October 2013. The Windows Update Cleanup feature is designed to help you to regain valuable hard disk space by removing bits and pieces of old Windows updates that are no longer needed.
I'll take a closer look at the Disk Cleanup tool and then focus on the new Windows Update Cleanup feature. As I do, I'll give you a little background on the Windows update leftovers that this tool is designed to eliminate.
Note: Disk Cleanup and the Windows Update Cleanup feature works the same in Windows 7, Windows 8, and Windows 8.1. This article applies to all of those Windows versions, though all of the example screen shots are from a Windows 8 system.
The WinSxS folder
If you used the Windows operating system back in the Windows 9x days, you're familiar with the term DLL Hell. This situation arose when you installed different programs that included updated versions of Dynamic Link Library (DLL) files with the same name as files already on the system. These duplicate files would wreak havoc with applications and the operating system. For example, an application would look for a specific version of a DLL file, but find a newer version that was recently updated by another program. Since the version was different, the application would act strangely or crash altogether.
By the time Windows Vista was introduced, Microsoft solved the problem by creating a new technology called componentization, which uses a folder called the WinSxS folder that allows the operating system to store and keep track of all kinds of operating system files (DLLs included) with the same name but different versions. WinSxS is short for Windows Side-by-Side and refers to using files with the same name but with different version numbers at the same time in the operating system.
As things evolved, the WinSxS folder also became the perfect place to store files added to the operating system by Windows Update. Microsoft releases a multitude of updates every month to keep up with bugs, new applications, and security problems (just to name a few of the reasons for the regular updates). In order to make sure the updates don't cause compatibility problems, all kinds of duplicate files get stored in the WinSxS folder so that everything can continue to function correctly. Furthermore, many Windows updates are designed such that if they do cause unanticipated compatibility problems, they can be uninstalled, and the files can be reverted back to a previous state.
While this is a pretty simplified description of the WinSxS folder, the general idea I want to convey is the WinSxS folder can grow so large that it takes up a good chunk of hard disk space. The problem gets compounded by the fact that, because the WinSxS folder is used to store so many files, really old files or files that are no longer necessary can still be taking up hard disk space.
For instance, Figure A shows the WinSxS folder on a system that began as a Windows 7 system and then upgraded to Windows 8. The WinSxS folder on this system contains 58,739 files and takes up 6.89 GB of hard disk space. (In comparison, one of my Windows 7 systems has 54,524 files and is using up 11.1 GB of hard disk space.)
Figure A
The WinSxS folder can be quite large. (Click to view a larger version of the image.)
If you want more technical detail about the origin of componentization and the WinSxS folder, you can read this 2008 post from the Ask the Core Team blog on the Microsoft TechNet site.
The Disk Cleanup tool
The Disk Cleanup tool has been around for quite some time and is designed to allow you to easily clean out old and unnecessary files that can clog up your hard disk; it's the perfect place for Microsoft to add the new Windows Update Cleanup feature, which is designed to weed through the WinSxS folder and eliminate waste. Rather than just jumping straight into the Windows Update Cleanup feature, let's take a closer look at the Disk Cleanup tool as a whole and then delve into the new feature.
To launch the Disk Cleanup tool, access the Start Menu or the Start Screen and type Disk Cleanup. Once you launch Disk Cleanup, if you have more than one hard disk in your system, you'll be prompted to select drive C. Disk Cleanup will begin to analyze the files on your hard disk to determine what can be safely removed (Figure B).
Figure B
When you launch the Disk Cleanup tool, it will calculate how much space you'll be able to free up.
Once the disk space analysis is complete, you'll see the main Disk Cleanup interface (Figure C), which essentially contains a list of all the categories or locations containing unnecessary files on your hard disk that can be removed. Adjacent to each category you'll see the size of the unnecessary files as well as a check box that allows you to specify that you want to remove those files. Beneath the list is a number indicating the total amount of disk space that you'll gain by removing the selected files. Immediately below the list is the description panel, which will provide you with more details about the category that is currently selected. The categories you see in the list will depend on what the Disk Cleanup tool found on your hard disk.
Figure C
The main feature of the Disk Cleanup interface is the Files To Delete scrolling list.
Table A: The most common categories listed in the Disk Cleanup tool.
Category | Description |
Download Program Files | Downloaded Program Files are ActiveX controls and Java applets downloaded automatically from the Internet with you view certain pages. They are temporarily stored in the Downloaded Program Files folder on your hard disk. |
Temporary Internet Files | The Temporary Internet Files folder contains webpages stored on your hard disk for quick viewing. Your personalized settings for webpages will be left intact. |
Offline webpages | Offline pages are webpages that are stored on your computer so you can view them without being connected to the Internet. If you delete these pages now, you can still view your favorites offline later by synchronizing then. Your personalized settings for webpages will be left intact. |
Game News Files (Windows 7 only) | The Game News Files facilitate delivery of RSS feeds to your Game Library. |
Game Statistics Files (Windows 7 only) | The Game Statistics Files are created to aid maintenance of various game statistics. |
Debug Dump Files | Files created by Windows. |
Recycle Bin | The Recycle Bin contains files you have deleted from your computer. |
Setup Log files | Files created by Windows. |
System error memory dump files | Remove system error memory dump files. |
System error minidump files | Remove system error minidump files. |
Temporary files | Programs sometimes stores temporary information in the TEMP folder. Before a program closes, it usually deleted this information. You can safely delete temporary files that have not been modified in over a week. |
Thumbnails | Windows keeps a copy of all your picture, video, and document thumbnails so they can be displayed quickly when you open a folder. If you delete these thumbnails, they will be automatically recreated as needed. |
User file history | Windows stores file versions temporarily on this disk before copying them to the designated File History disk. If you delete these files, you will lose some file history. |
Per user archived Windows Error Report | Files used for error reporting and solution checking. |
Per user queued Windows Error Report | Files used for error reporting and solution checking. |
System archived Windows Error Report | Files used for error reporting and solution checking. |
System queued Windows Error Report | Files used for error reporting and solution checking. |
As you select the various categories in the list, a View Files button may appear. If it does, you can click it to launch a separate Windows/File Explorer window targeted on the location and showing you all the unnecessary files stored there. Keep in mind that the View Files button is not available for all of the categories.
The Windows Update Cleanup feature
If you refer back to Figure C, you'll see that adjacent to the View Files button is a button titled Clean Up System Files. You'll notice this button is flagged with the User Account Control (UAC) icon. Depending on your UAC setting, you may see a UAC prompt when you select that button. The Clean Up System Files button provides you with access to the Windows Update Cleanup feature.
When you select the Clean Up System Files button, Disk Cleanup will again display the screen shown in Figure B as it analyzes additional locations on your hard disk to determine what can be safely removed. When the main Disk Cleanup interface returns, you'll find that a new category called Windows Update Cleanup appears in the list (Figure D). In addition, you may find several other new categories.
Figure D
Windows Update Cleanup appears in the Disk Cleanup list.
Table B: Categories that appear in Disk Cleanup when you select the Clean up system files button.
Category | Description |
Windows Update Cleanup | Windows keeps copies of all installed updates from Windows Update, even after installing newer versions of updates that are no longer needed and taking up space. (You might need to restart your computer.) |
Device driver packages | Windows keeps copies of all previously installed device driver packages from Windows Update and other sources even after installing newer versions of drivers. This task will remove older versions of drivers that are no longer needed. The most current version of each driver package will be kept. |
Windows Defender | Non critical files used by Windows Defender |
Windows upgrade log files | Windows upgrade log files contain information that can help identify and troubleshoot problems that occur during Windows installation, upgrade, or servicing. Deleting these files can make it difficult to troubleshoot installation issues. |
Service Pack Backup Files | Windows saves old versions of files that have been updated by a service pack. If you delete the files, you won't be able to uninstall the service pack later. |
Windows Update Cleanup only appears in the list when the Disk Cleanup wizard detects Windows updates that you don't need on your system. For example, when I ran Disk Cleanup's Windows Update Cleanup feature on a Windows 8.1 system that had recently been updated from Windows 8 to 8.1, the Windows Update Cleanup category did not appear in Disk Cleanup because everything had recently been cleaned up by the Windows 8.1 update.
When you click OK, Disk Cleanup will prompt you to confirm that you want to permanently delete the selected files (Figure E).
Figure E
Disk Cleanup will prompt you to confirm the permanent delete operation.
Disk Cleanup will then go to work cleaning up all the files in the categories that you selected, including the Windows Update files (Figure F).
Figure F
Disk Cleanup will remove any unnecessary Windows Update files.
The end result
You'll want to restart your system once Disk Cleanup completes its operation. When your system restarts, any unnecessary Windows Update files will be completely removed. As you survey the results, keep in mind that the Windows Update Cleanup feature will only remove files that it finds are no longer needed by the system, so you may find that a lot of files have been removed from your system or you may find that very few files have been removed from your system.
For example, after running the Windows Update Cleanup feature on my Windows 8 system, the number of files only dropped from 58,739 to 58,130 and the size of the WinSxS folder only dropped from 6.89 GB to 6.83 GB — a very small gain. However, on my Windows 7 system, the number of files dropped from 54,524 to 47,454, and the size of the WinSxS folder dropped from 11.1 GB to 7.86 GB — a modest gain of 3.24 GB of hard disk space.
What's your take?
Have you used Disk Cleanup's new Windows Update Cleanup feature in Windows 7 or 8.x? If so, what kind of disk savings did you encounter?
Vampire the masquerade bloodlines malkavian build. If you have comments or information to share about this topic, please drop by the TechRepublic forums and let us hear from you.
Keep Your Eyes on Windows Logs: Delete ‘em Wisely. A system log file contains info about all your recent activities on your system.
The info it contains can give you some handy clues when things go terribly wrong. But they can be clunky sometimes. You need a viewer to access your info quickly and handily, without the clunk.
For a safe and automatic of system cleanup, use the ST Cleaner utility. Download it here for improving PC speed and cleaning all junk within minutes.
Windows Event Viewer is Handy.
Event Viewer is handy in that it displays events in the log. Keep your eyes set on the event logs. They grow in size, particularly when multiple events occur that need logging. Windows features help you to keep the size of your event logs under your control. You can also clear your event logs all at once. Just right-click it in Event Viewer and choose Clear Log from the context menu.
Log files are of many types. They may range from Windows Logs (they contains info about the frequent events occur), Applications and Services Logs (it contains logs stored by apps running at the background) to Subscriptions [that include source- to collector-initiated subscriptions gathered from multiple source(s)].
To view log files, open Event Viewer using Start → Control Panel → Administrative Tools → Event Viewer. The interface has log files on the left pane and data on the right pane. There are five entry logs in total. And, by default, your system uses only three: Application, Security and System.
Clear Event Logs Wisely
It happens when you go on log file-hunting expeditions and you get into a serious trouble. Delete event logs wisely. Use Event Viewer. Here’s how:
- Launch Event Viewer
- Go to the event log and hit Action.
- Choose Clear Log and then hit Clear.
Wanted to save your logs before cleaning? Use Save and Clean.
Delete Saved Console.log
Each Console file records your recent activities (especially error messages) in your profile. Don’t let their tininess (small size) fool you. You keep ignoring them because of their small size. And problems persist. Remember: Checking log files periodically may point to the solutions.
- Launch Event Viewer → File (in the menu) → Options (here you’ll see the disk space in your file and how much space your saved files have consumed in your profile).
- Hit Disk Cleanup and then Delete Files.
- Now Exit and hit OK.
Use Command Line Prompt
Just another way is to use Command Line Prompt. It’s handy if you know what you are doing:
Windows 7 System Event Log
- Hit Windows Key + X and choose Command Prompt.
- Type this command: for /F “tokens=*” {3d55152316032bb7f971c4c5890b82c96627621b45b37c3edb7ed82a5903b44f}1 in (‘wevtutil.exe el’) DO wevtutil.exe cl “{3d55152316032bb7f971c4c5890b82c96627621b45b37c3edb7ed82a5903b44f}1″
- And Exit.
Use Windows PowerShell
This feature of Windows allows you to run your commands on a command-line. Here’s how:
- Open Windows PowerShell (by searching it on Taskbar)
- And run this command:
Get-EventLog -LogName * ForEach { Clear-EventLog $_.Log }
Clear System Logs Windows 7 Free
Use Windows Disk Cleanup
Clear System Logs Windows 7 Download
- Right-click This PC and select Properties.
- Go to General tab and click Disk Cleanup (it starts calculating the volume of temporary files you need to cleanup).
- Select all items, including: System archived Windows error reporting.
- Hit OK.