If you run into an issue where Exchange is running out of disk space on the C:\ drive, please check the logs in C:\InetPub , and C:\Program Files\Microsoft\Exchange Server\V15\Logging. If those directories are quite large you can run the following powershell script. It would also be a good idea to set it up as a scheduled task so the issue doesn’t reoccur.

 

gci ‘C:\Program Files\Microsoft\Exchange Server\V15\Logging’,’C:\inetpub\logs’ -Directory | gci -Include ‘*.log’,’*.blg’ -Recurse | ? LastWriteTime -lt (Get-Date).AddDays(-30) | Remove-Item

 

Advertisements