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

SBSFAQ.COM

Supporting IT Pro's & MSP's since 2000

  • Blog
  • FAQs
  • Reviews
  • Downloads

SBS 2008 Disk Cleanup Tool

April 2, 2010 by Wayne Small 13 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. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. Doug says

    September 14, 2013 at 1:59 am

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

    Reply

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Connect Online With Us

  • Facebook
  • Twitter

Reviews

Splashtop – Cost Effective Remote Control Software

September 22, 2017 By Wayne Small 2 Comments

Western Digital DL4100 NAS

March 3, 2015 By Wayne Small Leave a Comment

SBS 2011 Configuring Certification Guide (70-169)

August 7, 2012 By Wayne Small 4 Comments

Site News

Exchange Bug Stops Mail Delivery in 2022

January 2, 2022

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

January 4, 2018

Recent Posts

  • MS Exchange Zero Day and RemotePowerShell Disabling on Admin accounts
  • Setup changes for Exchange 2016 and Exchange 2019
  • Bluetooth Mouse and Keyboard Randomly Stop Responding
  • Exchange Bug Stops Mail Delivery in 2022
  • How to open and search extremely large text log files

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 SMB Community Software Software I use StorageCraft Training TrendMicro Troubleshooting Virtualisation Windows Server 2012 Essentials

Terms of Use

Privacy Policy

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