• Home
  • Consulting
  • Contact Us
    • About this site
    • Contact Wayne
    • Media Room
    • Wayne’s Bio

SBSFaq.com

Loads of free anwers for Small Business IT Solutions

  • Blog
  • FAQs
  • Reviews
  • Downloads

SBS 2008 Disk Cleanup Tool

April 2, 2010 by Wayne Small 32 Comments

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

SBS2008DiskCln.cmd

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Filed Under: Downloads Tagged With: SBS 2008

About The Author

Wayne has been working with Microsoft Server products in the SMB market for over 20 years. He has a passion for technology and been a Microsoft MVP for over 15 years. Read More…

Comments

  1. Nigel Moore says

    May 5, 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”

    Reply
  2. Mobile Geeks says

    July 21, 2011 at 7:15 pm

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

    Thanks so much for make it!

    Reply
  3. Greg says

    February 23, 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!

    Reply
    • Wayne Small says

      February 23, 2012 at 12:30 pm

      thanks Greg – fixed it now! Appreciate your feedback.

      Reply
  4. JRV says

    April 21, 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).

    Reply
  5. JRV says

    April 21, 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"

    Reply
  6. Ian Watkins says

    June 29, 2012 at 11:18 pm

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

    Reply
  7. mike says

    July 2, 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?

    Reply
    • Wayne Small says

      July 2, 2012 at 3:52 pm

      They lead to the same file 🙂

      Reply
  8. mike says

    July 2, 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?

    Reply
  9. Wayne Small says

    July 3, 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. 🙁

    Reply
  10. Doug says

    September 14, 2013 at 1:59 am

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

    Reply
  11. German says

    January 21, 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
    frequently!

    Also visit my weblog: German

    Reply
  12. Tyrell says

    March 12, 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

    Reply
  13. Willa says

    June 28, 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
    itself.

    Reply
  14. best private investigator books says

    July 6, 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

    Reply
  15. Odette says

    August 11, 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
    (Odette)

    Reply
  16. fake tan london says

    August 23, 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
    you.

    my web-site … fake tan london

    Reply
  17. spanish funny videos says

    August 27, 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

    Reply
  18. dock truck box accessories says

    September 3, 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

    Reply
  19. charles brandon Fort Lauderdale CPA says

    September 5, 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

    Reply
  20. learn Spanish quick and easy online says

    September 6, 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

    Reply
  21. social media marketing new york says

    September 12, 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

    Reply
  22. spanish jokes tumblr says

    September 19, 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

    Reply
  23. http://aidazoubr.wordpress.com says

    September 19, 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.

    Reply
  24. ashley madison says

    September 21, 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.

    Reply
  25. learn Spanish fast review says

    September 21, 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

    Reply
  26. Klara says

    November 29, 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.} http://findyourtreadmill.com

    Reply
  27. Progenex Force Review says

    February 6, 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.

    Reply

Trackbacks

  1. How can I fix disk space issues on SBS 2008 ? says:
    April 2, 2010 at 6:18 am

    […] […]

    Reply
  2. Tweets that mention SBS 2008 Disk Cleanup Tool -- Topsy.com says:
    April 2, 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 http://www.sbsfaq.com/?p=1598 […]

    Reply
  3. SBS 2008 out of disk space says:
    May 6, 2016 at 9:39 pm

    […] found a great script at SBSfaqs (http://www.sbsfaq.com/?p=1598) and updated the script to include all 4 points above and be able to select which options to […]

    Reply

Leave a Reply to http://aidazoubr.wordpress.com Cancel reply

Your email address will not be published. Required fields are marked *

Search

Connect Online With Us

  • Facebook
  • Twitter

Reviews

Splashtop – Cost Effective Remote Control Software

Splashtop – Cost Effective Remote Control Software

September 22, 2017 By Wayne Small 1 Comment

Western Digital DL4100 NAS

Western Digital DL4100 NAS

March 3, 2015 By Wayne Small Leave a Comment

SBS 2011 Configuring Certification Guide (70-169)

SBS 2011 Configuring Certification Guide (70-169)

August 7, 2012 By Wayne Small 4 Comments

Site News

Huge bug found in Intel CPU that could permit hackers to steal your data

January 4, 2018

Site Theme Changes – Complete

June 25, 2016

Recent Posts

  • Windows 10 – How to disable the screen locking when screensaver comes on
  • Huge bug found in Intel CPU that could permit hackers to steal your data
  • Meet Process Explorer–Task Manager on Steroids
  • How can I see what a specific program is doing to my computer?
  • What is using all my RAM?

Tags

Antivirus Backup Business Focus Cloud Computing Community Conferences Disaster Recovery Exchange 2010 Exchange Server Future Products Hyper-V Installation Microsoft Migration Patches Personal Rants SBS 4.5 SBS 2000 SBS 2000 SP1 SBS 2003 SBS 2003 Premium SBS 2003 R2 SBS 2003 R2 Premium SBS 2003 R2 Standard SBS 2003 SP1 Premium SBS 2003 SP1 Standard SBS 2003 Standard SBS 2008 SBS 2008 R2 SBS 2011 SBS 2011 Essentials SBS 2011 Standard Security Service Packs ShadowProtect SMBiTPro Software Software I use StorageCraft Training TrendMicro Troubleshooting Virtualisation Windows Server 2012 Essentials

Terms of Use

Privacy Policy

Copyright © 2018 · Magazine Pro Theme on Genesis Framework · WordPress · Log in