Jump to content
CCleaner Community Forums

CCleaner and Micrsoft Security Essentials

Recommended Posts

If it's just a log file, couldn't you run Pete Romainges File Attribute Changer to mark the log as a system, hidden, & read only file, so it cannot be deleted?

It is not a single log file; MSE creates a new file (without an extension) every hour or so in C:\ProgramData\Microsoft\Microsoft Antimalware\Scans\History\Results\Resource


I have been deleting these (without the newest one) every day now, but the results are not conclusive yet. I still see the orange MSE icon sometimes.

Link to post
Share on other sites


I have read with interest the posts above and, as always at the Piriform forums, quite amazed at the level of knowledge and degree of civility with which the discussions unfold.

I am a participant in the test program for the new MSE (pre-release). I run it on 2 computers that use Windows 7 Home Premium and both of which have the current version of CCleaner. Prior to becoming a member of the testing program, I did not use MSE. I have used Cleaner since 2009.

1) On one device, in CCleaner, the MSE and Security Client boxes are checked. On the other device, same model and make, they are not checked. The results are different, as you might expect. I do get the yellow, "Your system is potentially at risk. You haven't run a scan recently." warning on the PC that has the MSE boxes checked. I do not on the other.

However, on the relevant device, the one with the CCleaner boxes checked for MSE, I only get the warning periodically and with no clear indication why. ( I should note that while it seems possible from his/her post, at least one contributor to this thread is also part of the testing, I don't feel comfortable sharing what has been relayed to me by Microsoft Research Dept. as a result of a bug in the pre-release program, but the following information from them seems to apply to all versions of MSE ). MSE is creating logging data that is stored in more than one location during any period when it is running Real TIme. If a user-initiated scan is run during this time, data related to the functionality of the scan itself MAY also be recorded and stored in a 3rd location. This information is time and date stamped at the onset and conclusion of the scan.

Regardless of the outcome of the scan and any subsequent actions taken by the user, the functionality data remains in a file that is routinely scanned and cleaned by CCleaner. ( 3.23.1823 is the version I am using). As far as I can determine, this is why I get periodic rather than routine "yellow" alerts from MSE after using CCleaner.


On a brief personal note: I do wish I were able to visit the forums more often and post some of my issues. That having been said, I am quite grateful for all the advice so freely and generously offered. I pass it on to all my friends on whose PC's I am pleased to say CCleaner is happily cleaning away.

Link to post
Share on other sites

I think I also know a little bit more after doing some more testing this afternoon.


Welcome to the Piriform forums, bottom2topjk, b.t.w. B)


There are three folders (that I know of) that get deleted by CCleaner, if MS Antimalware is checked:

  • C:\ProgramData\Microsoft\Microsoft Antimalware\Scans\History\Results\Quick
  • C:\ProgramData\Microsoft\Microsoft Antimalware\Scans\History\Results\Resource
  • C:\ProgramData\Microsoft\Microsoft Antimalware\Scans\History\Results\System

I think now that the only ones that matter are the Quick and System folders, I think the Resource folder does not matter.


In the Quick folder, results from quick scans are stored. 1 file per scan.

In the System folder, the results from full scans are stored. 1 file per scan.

In the Resource folder, any other MSE activities are stored.


I think that we can safely delete all data in the Resource folder.

However, we must keep the last scan in either the Quick or System folder.


I will do some further testing for another week, then report back the final results.

Link to post
Share on other sites

The above file paths are on Windows 7.

On Windows XP, the paths are as follows

  • C:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Antimalware\Scans\History\Results\Quick
  • C:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Antimalware\Scans\History\Results\Resource
  • C:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Antimalware\Scans\History\Results\System

Of course the access would probably be via %ALLUSERSPROFILE%, not an absolute path.

Link to post
Share on other sites
  • Moderators

I always let CCleaner clean MS Security Client with zero problems and no complaining from MSE, as it only cleans these folder locations (which by the way will only get bloated logs in them immediately after upgrading MSE to a brand new version):

%CommonAppData%\Microsoft\Microsoft Security Client\Support|*.log

%CommonAppData%\Microsoft\Microsoft Antimalware\Support|*.log


Now if I let CCleaner also clean MS AntiMalware that's when MSE will start complaining that the system is at risk, and that a scan needs to take place. That MS AntiMalware box in CCleaner is the one I'd only use once per week (which may actually be overkill), or once per month.

Edited by Andavari
Typos fixed
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...