System32\CertLog Folder Size

23 Apr

During a bit of routine maintenance, I noticed the disk space on a single server was dropping, but for no obvious reason. Looking at the PTRG logs the downward trend had been going on for some time.

With a bit of TreeSize, I spotted over 7GB of log files located in: C:\Windows\System32\CertLog

Whilst they can safely be deleted (assuming everything is in good order of course), I didn’t really need them going forward and so the simple fix was to change the logging level with:

certutil -setreg ca:\loglevel 0

  • 0 CERTLOG_MINIMAL
  • 1 CERTLOG_TERSE
  • 2 CERTLOG_ERROR
  • 3 CERTLOG_WARNING (Default)
  • 4 CERTLOG_VERBOSE