LogPath Config
. 'C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1'
Connect-ExchangeServer -auto -ClientApplication:ManagementShell
$exchangeservername = $env:computername
Set-TransportService -Identity $exchangeservername -ConnectivityLogPath "L:\TransportRoles\Logs\Hub\Connectivity" -MessageTrackingLogPath "L:\TransportRoles\Logs\MessageTracking" -IrmLogPath "L:\Logging\IRMLogs" -ActiveUserStatisticsLogPath "L:\TransportRoles\Logs\Hub\ActiveUsersStats" -ServerStatisticsLogPath "L:\TransportRoles\Logs\Hub\ServerStats" -ReceiveProtocolLogPath "L:\TransportRoles\Logs\Hub\ProtocolLog\SmtpReceive" -RoutingTableLogPath "L:\TransportRoles\Logs\Hub\Routing" -SendProtocolLogPath "L:\TransportRoles\Logs\Hub\ProtocolLog\SmtpSend" -QueueLogPath "L:\TransportRoles\Logs\Hub\QueueViewer" -WlmLogPath "L:\TransportRoles\Logs\Hub\WLM" -PipelineTracingPath "L:\TransportRoles\Logs\Hub\PipelineTracing" -AgentLogPath "L:\TransportRoles\Logs\Hub\AgentLog"
# move the path for the PERFMON logs from the C: drive to the E: drive
logman -stop ExchangeDiagnosticsDailyPerformanceLog
logman -update ExchangeDiagnosticsDailyPerformanceLog -o "L:\Logging\Diagnostics\DailyPerformanceLogs\ExchangeDiagnosticsDailyPerformanceLog"
logman -start ExchangeDiagnosticsDailyPerformanceLog
logman -stop ExchangeDiagnosticsPerformanceLog
logman -update ExchangeDiagnosticsPerformanceLog -o "L:\Logging\Diagnostics\PerformanceLogsToBeProcessed\ExchangeDiagnosticsPerformanceLog"
logman -start ExchangeDiagnosticsPerformanceLog
# Get the details on the EdgeSyncServiceConfig and store them in a variable for use in setting the path
$EdgeSyncServiceConfigVAR=Get-EdgeSyncServiceConfig
# Move the Log Path using the variable we got
# Move the standard log files for the FrontEndTransportService to the same path on the E: drive that they were on C:
Set-FrontendTransportService -Identity $exchangeservername -AgentLogPath "L:\TransportRoles\Logs\FrontEnd\AgentLog" `
-ConnectivityLogPath "L:\TransportRoles\Logs\FrontEnd\Connectivity" `
-ReceiveProtocolLogPath "L:\TransportRoles\Logs\FrontEnd\ProtocolLog\SmtpReceive" `
-SendProtocolLogPath "L:\TransportRoles\Logs\FrontEnd\ProtocolLog\SmtpSend"
# MOve the log path for the IMAP server
Set-ImapSettings -LogFileLocation "L:\Logging\Imap4"
# Move the logs for the MailBoxServer
Set-MailboxServer -Identity $exchangeservername `
-CalendarRepairLogPath "L:\Logging\Calendar Repair Assistant" `
-MigrationLogFilePath "L:\Logging\Managed Folder Assistant"
# Move the standard log files for the MailboxTransportService to the same path on the E: drive that they were on C:
Set-MailboxTransportService -Identity $exchangeservername `
-ConnectivityLogPath "L:\TransportRoles\Logs\Mailbox\Connectivity" `
-MailboxDeliveryAgentLogPath "L:\TransportRoles\Logs\Mailbox\AgentLog\Delivery" `
-MailboxSubmissionAgentLogPath "L:\TransportRoles\Logs\Mailbox\AgentLog\Submission" `
-ReceiveProtocolLogPath "L:\TransportRoles\Logs\Mailbox\ProtocolLog\SmtpReceive" `
-SendProtocolLogPath "L:\TransportRoles\Logs\Mailbox\ProtocolLog\SmtpSend" `
-PipelineTracingPath "L:\TransportRoles\Logs\Mailbox\PipelineTracing"
# MOve the log path for the POP3 server
Set-PopSettings -LogFileLocation "L:\Logging\Pop3"
Last updated