Exchange 2016 – move log files to another drive

I have just built a new Exchange 2016 server and the boot drive is starting to fill up quite quickly.  A lot of this is down to logging so I’m going to move the log files to another drive with a lot more free space.  Naturally, this is best done with PowerShell so here are a few of the commands required to get the logs moved:

Connectivity Logs

Set-TransportServer SERVERNAME -ConnectivityLogPath “D:\Program Files\Microsoft\Exchange Server\V15\Logging\Connectivity”

SMTP Receive Logs

Set-TransportService SERVERNAME -ReceiveProtocolLogPath “D:\Program Files\Microsoft\Exchange Server\V15\Logging\SMTPReceive”

SMTP FrontEnd Receive Logs

Set-FrontEndTransportService -Identity SERVERNAME -ReceiveProtocolLogPath “D:\Program Files\Microsoft\Exchange Server\V15\Logging\SMTPFrontEnd”

SMTP Send

Set-TransportService SERVERNAME -SendProtocolLogPath “D:\Program Files\Microsoft\Exchange Server\V15\Logging\SMTPSend”

Queue

Set-TransportService SERVERNAME -QueueLogPath “D:\Program Files\Microsoft\Exchange Server\V15\Logging\QueueViewer”

Active User Stats

Set-TransportService SERVERNAME -ActiveUserStatisticsLogPath “D:\Program Files\Microsoft\Exchange Server\V15\Logging\ActiveUserStats”

Message Tracking

Set-TransportService SERVERNAME -MessagetrackingLogPath “D:\Program Files\Microsoft\Exchange Server\V15\Logging\MessageTracking”

[BlogBookmark] [Blogsvine] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [LinkedIn] [MySpace] [Reddit] [Slashdot] [StumbleUpon] [Twitter] [Windows Live] [Yahoo!] [Email]