I’ve been seeing a lot of Windows 2008 SBS servers running out of disk space lately on the C drive.
This causes Exchange to stop working due to the “back pressure” feature, which has been the first clue to the problem. After a bit of searching I found several area’s where log files can grow.
The 4 main area’s I found are :
- Active Directory Certificate Services
- IIS Log Files
- SBS Data Collector log (DataserviceComponents.log)
- Sharepoint SQL logs
I 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 run.
You will need to save the 2 SQL files and the batch file to a folder called “SBS Cleaner” on the root of the E drive. Run the batch file as administrator.
Please find the code for each file below.