This morning our Exchange 2013 server stopped sending emails because the hard drive was full.
We have just over 290GB of Exchange log files. How can I go about clearing up these log files?
So far I have tried -
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
This cleared about 2GB but we need to clear more space.