To free up some space or to prevent your system drive from filling up and taking down your entire server, you can move some of these fairly easy to an other disk.
Stop all Exchange services to be safe:
Stop-Service MSExchangeADTopology
Get the current (default) locations for the log files:
get-TransportService sr-xxxxx | fl *logpath* ConnectivityLogPath : C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\Hub\Connectivity MessageTrackingLogPath : C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\MessageTracking IrmLogPath : C:\Program Files\Microsoft\Exchange Server\V15\Logging\IRMLogs ActiveUserStatisticsLogPath : C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\Hub\ActiveUsersStats ServerStatisticsLogPath : C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\Hub\ServerStats ReceiveProtocolLogPath : C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\Hub\ProtocolLog\SmtpRe ceive RoutingTableLogPath : C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\Hub\Routing SendProtocolLogPath : C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\Hub\ProtocolLog\SmtpSe nd QueueLogPath : C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\Hub\QueueViewer WlmLogPath : C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\Hub\WLM AgentLogPath : C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\Hub\AgentLog FlowControlLogPath : ProcessingSchedulerLogPath : ResourceLogPath : DnsLogPath : JournalLogPath : C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\JournalLog TransportMaintenanceLogPath :Set the log files to the new location:
Get-TransportService | foreach {
Set-TransportService -MessageTrackingLogPath “D:\Logs\MessageTracking” Set-TransportService -ConnectivityLogPath “D:\Logs\Connectivity” Set-TransportService -IrmLogPath “D:\Logs\IRMLogs” Set-TransportService -ActiveUserStatisticsLogPath “D:\Logs\ActiveUserStats” Set-TransportService -ServerStatisticsLogPath “D:\Logs\ServerStats” Set-TransportService -ReceiveProtocolLogPath “D:\Logs\ProtocolLog\SmtpReceive” Set-TransportService -RoutingTableLogPath “D:\Logs\Routing” Set-TransportService -SendProtocolLogPath “D:\Logs\ProtocolLog\SmtpSend” } Start-Service MSExchangeADTopologyCheck if the default folders are empty other wise stop the services again and move all files to the new folder and restart the services.
Hey there! Would you mind if I share your blog with my twitter group?
ReplyDeleteThere's a lot of people that I think would really enjoy your content.
Please let me know. Cheers
Go right ahead :-)
ReplyDelete