SBS 2008 Disk Cleanup Tool

This tool clears up unneeded log files in SBS 2008. For more information check this FAQ



This entry was posted on Friday, April 2nd, 2010 at 6:18 am and is filed under Downloads. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

36 Responses to “SBS 2008 Disk Cleanup Tool”

  1. How can I fix disk space issues on SBS 2008 ? Says:

    April 2nd, 2010 at 6:18 am

    […] […]

  2. Tweets that mention SBS 2008 Disk Cleanup Tool -- Says:

    April 2nd, 2010 at 6:41 am

    […] This post was mentioned on Twitter by Wayne Small and Jim Locke, SMBTN. SMBTN said: RT @sbsfaq: SBSfaq Post: SBS 2008 Disk Cleanup Tool […]

  3. Nigel Moore Says:

    May 5th, 2010 at 6:20 pm

    Thanks for posting this sort of content – it’s ridiculously helpful – saves us researching what directories we can clear out safely…

    One slight problem in your script though – the 3rd “certlog” line you have “certlof”

  4. Mobile Geeks Says:

    July 21st, 2011 at 7:15 pm

    Awesome tool, I keep it on clients servers and run it monthly.

    Thanks so much for make it!

  5. Greg Says:

    February 23rd, 2012 at 11:12 am

    looking at the script one of the lines says del c:\windows\system32\certlof\*.jrs which I believe should read del c:\windows\system32\certlog\*.jrs instead. I would suggest the file be updated. Awesome job otherwise. Thanks!

  6. Wayne Small Says:

    February 23rd, 2012 at 12:30 pm

    thanks Greg – fixed it now! Appreciate your feedback.

  7. JRV Says:

    April 21st, 2012 at 2:10 am

    To preserve 30 days of logs for troubleshooting, substitute the following. Don’t know how wordwrap will affect this so I’ve put a blank line between each command that looks like it might wrap.

    rem Certificate Services Logs
    net stop “Active Directory Certificate Services”

    forfiles /d -30 /p “%windir%\system32\certlog” /m *.log /c “cmd /c del @file”

    forfiles /d -30 /p “%windir%\system32\certlog” /m *.chk /c “cmd /c del @file”

    forfiles /d -30 /p “%windir%\system32\certlog” /m *.jrs /c “cmd /c del @file”

    net start “Active Directory Certificate Services”

    rem IIS Log Files

    forfiles /d -30 /p C:\inetpub\logs\LogFiles /m *.log /s /c “cmd /c del @file”

    I still have something else that’s slowly consuming many GBs of SBS disk space. Have had IIS logs under control for years, but didn’t know about CertLog, from which I recovered 2GB. Every little bit helps! Thanks, and will continue my search for the other culprit(s).

  8. JRV Says:

    April 21st, 2012 at 2:13 am

    Looks like nothing wrapped, but curly quotes were substituted for straight quotes, so make sure to change them back. Reposting with the Code XHTML I didn’t notice before to see if that helps.

    rem Certificate Services Logs
    net stop "Active Directory Certificate Services"

    forfiles /d -30 /p "%windir%\system32\certlog" /m *.log /c "cmd /c del @file"
    forfiles /d -30 /p "%windir%\system32\certlog" /m *.chk /c "cmd /c del @file"
    forfiles /d -30 /p "%windir%\system32\certlog" /m *.jrs /c "cmd /c del @file"

    net start "Active Directory Certificate Services"

    rem IIS Log Files
    forfiles /d -30 /p "C:\inetpub\logs\LogFiles" /m *.log /s /c "cmd /c del @file"

  9. Ian Watkins Says:

    June 29th, 2012 at 11:18 pm

    Is this script OK to use on any other SBS or Windows Server platforms?

  10. mike Says:

    July 2nd, 2012 at 1:10 pm

    So is the .cmd link at the top of the page the latest and greatest? Or the 4/21 post?

  11. Wayne Small Says:

    July 2nd, 2012 at 3:52 pm

    They lead to the same file :-)

  12. mike Says:

    July 2nd, 2012 at 9:25 pm

    lead to the same file?

    at the top of the page is a link to the cmd and that uses
    del c:\windows\system32\certlog\*.jrs

    but the april 21st post has a script in it and uses:
    forfiles /d -30 /p “%windir%\system32\certlog” /m *.jrs /c “cmd /c del @file”

    forfiles has to be copied to the server, right? It’s not a native app?

  13. Wayne Small Says:

    July 3rd, 2012 at 7:53 am

    My apologies Mike – the link @ top of the page is the file I’ve created and use. The comment that JRV posted on April 21st has not been integrated into the file I’ve created as I’ve not tested it.
    I didn’t read your initial comment correctly. :-(

  14. Doug Says:

    September 14th, 2013 at 1:59 am

    Can this be used to cleanup sbs2011 and windows server 2008r2?

  15. German Says:

    January 21st, 2014 at 4:29 am

    Hello! I could have sworn I’ve been to this website before but after
    looking at a few of the articles I realized it’s new to
    me. Regardless, I’m definitely pleased I came across it and I’ll be book-marking it and checking back

    Also visit my weblog: German

  16. Tyrell Says:

    March 12th, 2014 at 6:57 am

    Hey would you mind stating which blog platform you’re using?
    I’m going to start my own blog in the near future but I’m
    having a tough time deciding between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different
    then most blogs and I’m looking for something completely unique.
    P.S Apologies for being off-topic but I had to ask!

    my web site – Tyrell

  17. wholesale cheap Sharks jerseys china Says:

    June 17th, 2014 at 2:16 pm

    wholesale 49ers cheap jerseys for mens kids and womens sale

  18. Willa Says:

    June 28th, 2014 at 7:41 pm

    Crystal Therapy: Facts / HistoryThis page is my experience musicians turn more often than not, intelligent, driven and smart, Pittas can become unbalanced, causing not only believe that different essential
    oils may be reacting to. Philosphers of science in the air around them can be
    similarly applied psychic experiences to the problem. Three of the
    other hand comfrey leaf infusions reportedly enables more flexibility and resistance exercise stretching and weight loss unto

  19. best private investigator books Says:

    July 6th, 2014 at 6:14 pm

    Highly energetic post, I enjoyed that a lot. Will there be a part 2?

    My web blog best private investigator books

  20. Christian louboutin australia Says:

    July 29th, 2014 at 4:04 pm

    Low levels of vitamin D have been associated with Type 2 diabetes, and scientists at the Medical Centre Alkmaar in The Netherlands reviewed studies of low vitamin D and diabetes developing during pregnancy.The intelligence is going to be the sign of the Christian louboutin sale style.government introduced a revenue fairly neutral duty upon carbon by-products throughout 2008 in their Climate Action Plan.There is a bundle of fun dresses and amazing multiplicity of glamorous and fashionable funny designer shoes in the market these days.You are able to additionally make use of this part for you to justify Christian louboutin shoes on the internet any peculiarities with your program and become selected you’ve got particular answers will not bring down the prospect of an individual clinching this job.Current fashions women who purchase Louboutin Footwear with regard to factors fake christian louboutin as well as a knock-off christian louboutin shoes kind of reasons is that, since the footwear is constructed with excellent and also prime patterns.For more tips on how to pick the right running shoe, read our advice here Christian louboutin australia, and find out more about pronation and running styles here.
    Christian louboutin australia

  21. Odette Says:

    August 11th, 2014 at 10:30 pm

    Yes! Finally something about how to learn Spanish
    how to whiten teeth quickly at home.

    Also vissit my website: learn Spanish fast rrosetta stone

  22. fake tan london Says:

    August 23rd, 2014 at 10:41 am

    We’ll show how to accomplish this with just a few simple steps.
    You also have to be at ease in your dress, able to glide down the aisle
    in it & look comfortable all day long. There is no reason to be self-conscious about your body in front of the woman, or man, who is tanning

    my web-site … fake tan london

  23. spanish funny videos Says:

    August 27th, 2014 at 7:39 am

    I love looing tɦrough an artiϲle thawt will make men and women think.

    Also,thanks for permitting me to cօmment!

    mʏ website – spanish funny videos

  24. dock truck box accessories Says:

    September 3rd, 2014 at 12:12 pm

    Yet he chose to ask me so many questions about how and why I do things, because he could see the profound insight I had built up due to going my own way with my own research and testing over the past
    7 years. Leave your windows open a few hours a day and then you get to clean the black soot off of the floors.
    Freshwater fish can be placed in the live well on the boat, or on a stringer to keep it alive until you are able to
    clean it.

    my blog … dock truck box accessories

  25. charles brandon Fort Lauderdale CPA Says:

    September 5th, 2014 at 3:12 am

    The Maharashtra State Tax on Professions, Trades, Callings
    and Employments Act, 1975 mentions that:. Although CPA firm
    sites are great,they are only useful in introducing CPA or EA firm.
    Forums are a great place to market as in general they are based around a niche so all of the people will
    be interested in the same types of things.

    Feel free to visit my site: charles brandon Fort Lauderdale CPA

  26. learn Spanish quick and easy online Says:

    September 6th, 2014 at 8:09 am

    Ӊello, I гead yoսr blogs ԁаily. Your writing
    stylе iss witty, keep up the ǥood wߋrk!

    My weblοg – learn Spanish quick and easy online

  27. social media marketing new york Says:

    September 12th, 2014 at 5:41 pm

    Arrest their attention by using rich colors and well defined graphics.
    Google optimization conditional on the premise that the more often people that like aimed at your web, extra valuable it is required to be and the more significant ranking it deserves searching results.

    Be sure to fully grasp the actual alteration needs connected with any
    online marketing program prior to deciding to concur.

    Also visit my web page: social media marketing new york

  28. spanish jokes tumblr Says:

    September 19th, 2014 at 10:14 am

    Thanks for the good writeup. It actually was a enjoyment account it.

    Loook complicated tto far added agreeable from you! However, how can we keep in touch?

    Stop by myy site spanish jokes tumblr

  29. Says:

    September 19th, 2014 at 2:06 pm

    All you need is an Internet connection and a computer.
    In addition to being a world-class casino, the
    MGM offers live shows and comprehensive spa services.
    This is to ensure that their playing impulses are still under control.

  30. ashley madison Says:

    September 21st, 2014 at 4:44 am

    (Looking through the profiles of MSN members); Sites to match couples (Perfectmatch,
    match, etc) and Relationship sites (Passion, Adult Friend Finder, etc).
    I’ve never been in this situation, but I think that once
    you do meet a guy and you think it might get serious, you should tell him and be honest.

    And if you really don’t or are unsuccessful in owning an affair, these men have a “no affair – no fee” money back again assure.

  31. learn Spanish fast review Says:

    September 21st, 2014 at 2:16 pm

    I do accept as true with all the ideas you’ve offered for yyour post.
    They are very convincing and can definitely work. Still, the pots are very sshort for
    novices. Could you please lengthen them a little from next time?
    Thanks for the post.

    Also visit my blog :: learn Spanish fast review

  32. Klara Says:

    November 29th, 2014 at 1:34 pm

    Awesome Webpage, Stick to the wonderful work. Thank you! In case you have almost any inquiries about wherever as well as tips on how to use weslo treadmill review walmart, it is possible to call us at our internet site.}

  33. Progenex Force Review Says:

    February 6th, 2015 at 3:01 pm

    Hi all, here every one is sharing such familiarity, thus it’s nice
    to read this webpage, and I used to go to see this blog daily.

  34. income tax Says:

    August 25th, 2015 at 8:13 pm

    Nice post. I was examining continuously this blog using this program . satisfied! Worthwhile information and facts especially the continue aspect :) I personally keep this kind of details a whole lot. I’d been looking for the following a number of information for your number of years. Appreciate it and best associated with success income tax.

  35. Mlb Attendance 2012 Says:

    November 6th, 2015 at 7:30 pm

    Two days ago I received the shoes today try it before deciding to write feelings, not all leather shoes, leather inside, the outside is not the skin, and uncomfortable to wear soles quality in general, my colleagues say I overpaid outside this quality shoe can be as long as more than 100! Shoes two days before received.
    Mlb Attendance 2012

  36. SBS 2008 out of disk space Says:

    May 6th, 2016 at 9:39 pm

    […] found a great script at SBSfaqs ( and updated the script to include all 4 points above and be able to select which options to […]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>