Exchange Server Log Path Değiştirme
Exchange Server üzerinde varsayılan dosya yolları (path) zamanla depolama alanı yönetimi, performans optimizasyonu veya kurumsal standartlara uyum sağlama amacıyla değiştirilmesi gerekebilir. Aşağıdaki PowerShell komutları, bu yolları güvenli bir şekilde değiştirmek için kullanılabilir. Bu işlem, sistemin sağlıklı çalışmasını sürdürebilmesi için dikkatlice planlanmalı ve uygulanmalıdır.
Aşağıdaki PowerShell komutlarını kullanarak Exchange Server üzerinde yolları (path) kolayca değiştirebilirsiniz. Kodları dikkatlice inceleyerek ihtiyaçlarınıza göre düzenlemenizi öneririm.
$MessageTrackingLogMaxAge = 180
$MessageTrackingLogMaxDirectorySize = "50GB"
$path = "G:"
$exchangeservername = $env:computername
Set-TransportService -Identity $exchangeservername `
-ConnectivityLogPath "$path\TransportRoles\Logs\Hub\Connectivity" `
-MessageTrackingLogPath "$path\TransportRoles\Logs\MessageTracking" `
-IrmLogPath "$path\Logging\IRMLogs" `
-ActiveUserStatisticsLogPath "$path\TransportRoles\Logs\Hub\ActiveUsersStats" `
-ServerStatisticsLogPath "$path\TransportRoles\Logs\Hub\ServerStats" `
-ReceiveProtocolLogPath "$path\TransportRoles\Logs\Hub\ProtocolLog\SmtpReceive" `
-RoutingTableLogPath "$path\TransportRoles\Logs\Hub\Routing" `
-SendProtocolLogPath "$path\TransportRoles\Logs\Hub\ProtocolLog\SmtpSend" `
-QueueLogPath "$path\TransportRoles\Logs\Hub\QueueViewer" `
-WlmLogPath "$path\TransportRoles\Logs\Hub\WLM" `
-PipelineTracingPath "$path\TransportRoles\Logs\Hub\PipelineTracing" `
-AgentLogPath "$path\TransportRoles\Logs\Hub\AgentLog" `
-MessageTrackingLogMaxDirectorySize $MessageTrackingLogMaxDirectorySize `
-MessageTrackingLogMaxAge $MessageTrackingLogMaxAge
Set-FrontendTransportService -Identity $exchangeservername `
-AgentLogPath "$path\TransportRoles\Logs\FrontEnd\AgentLog" `
-ConnectivityLogPath "$path\TransportRoles\Logs\FrontEnd\Connectivity" `
-ReceiveProtocolLogPath "$path\TransportRoles\Logs\FrontEnd\ProtocolLog\SmtpReceive" `
-SendProtocolLogPath "$path\TransportRoles\Logs\FrontEnd\ProtocolLog\SmtpSend"
Set-ImapSettings -LogFileLocation "$path\Logging\Imap4"
Set-MailboxServer -Identity $exchangeservername `
-CalendarRepairLogPath "$path\Logging\Calendar Repair Assistant" `
-MigrationLogFilePath "$path\Logging\Managed Folder Assistant"
Set-MailboxTransportService -Identity $exchangeservername `
-ConnectivityLogPath "$path\TransportRoles\Logs\Mailbox\Connectivity" `
-MailboxDeliveryAgentLogPath "$path\TransportRoles\Logs\Mailbox\AgentLog\Delivery" `
-MailboxSubmissionAgentLogPath "$path\TransportRoles\Logs\Mailbox\AgentLog\Submission" `
-ReceiveProtocolLogPath "$path\TransportRoles\Logs\Mailbox\ProtocolLog\SmtpReceive" `
-SendProtocolLogPath "$path\TransportRoles\Logs\Mailbox\ProtocolLog\SmtpSend" `
-PipelineTracingPath "$path\TransportRoles\Logs\Mailbox\PipelineTracing"
Set-PopSettings -LogFileLocation "$path\Logging\Pop3"
Import-Module WebAdministration
Set-ItemProperty 'IIS:\Sites\Default Web Site' -name logfile.directory "G:\LOG\IISLogs"
Set-ItemProperty 'IIS:\Sites\Exchange Back End' -name logfile.directory "G:\LOG\IISLogs"
Post Views: 114
Son Yazılar
Arşivler
Kategoriler
Son yorumlar
- RDS “We can’t sign into your account”, Temp Profil Sorunu ve Çözümü için Mehmet Sait YILMAZ
- RDS “We can’t sign into your account”, Temp Profil Sorunu ve Çözümü için Can Karapınar