Archiv der Kategorie: Exchange

log rollover for Exchange 2013 server

use forfiles (or something like that) for log rollover of Exchange Server to free up disk space – implement it for following folders

C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\ETLTraces
C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\Logs
C:\Program Files\Microsoft\Exchange Server\V15\Logging
C:\Program Files\Microsoft\Exchange Server\V15\Logging\Diagnostics\PerformanceLogsToBeProcessed
C:\Program Files\Microsoft\Exchange Server\V15\Logging\Monitoring\Monitoring\MSExchangeHMWorker\ActiveMonitoringTraceLogs
C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\Temp
C:\inetpub\logs

exp: forfiles /p C:\inetpub\logs /m *.log /s /d -10 /c „cmd /c DEL @path“

alternativ with Powershell:

Function Remove-ToolsLog($olderThenDays){

Set-ToolsLogAddLine -LogTXT „Remove old log files“ -Foregroundcolor „green“

$logPath = Split-Path $Script:LogFilePath -Parent

Get-ChildItem -path $logPath | Where-Object { !$_.PSIsContainer -and $_.Extension -eq „.log“ -and $_.CreationTime -lt (Get-Date).AddDays($olderThenDays) } | Remove-Item -Force

}

Limit Diagnostic-Service logs

Edit the Microsoft.Exchange.Diagnostics.Service.exe.config file in the bin folder by adding the following line in the appSettings area:

<add key=“MaxDailyPerformancelogDirectorySize“ value=“1024″/>
or lower <add key=“MaxDailyPerformancelogDirectorySize“ value=“512″/>

The value is the maximum space consumed for daily performance logs, in megabytes.

Then restart the MSExchangeDiagnostics service for the change to take effect.

Must know Office 365 PowerShell commands – TechSultan

Many enterprise migrated to cloud services, especially for email management. Office 365 is one of them, maybe most popular Exchange online solution. If you migrated to Office 365, there is a little adminitrative panel which offer you minimal possibility.

Real administrative tasks are on PowerShell side, it’s hard to find commands and how to operate them, so here a list of must know Office 365 PowerShell commands :

via Must know Office 365 PowerShell commands – TechSultan.

Content Index status of all or most of the mailbox databases in the environment shows „Failed“

To resolve the issue, do the following:

Create a new Active Directory group that is named „ContentSubmitters“ and then grant Admistrators and NetworkService full access to the group. This is a dummy group and should be used as a placeholder only. You might want to add a description so that the group is not removed.

Force or wait for Active Directory replication.

Restart the following services:

Microsoft Exchange Search

Microsoft Exchange Search Host Controller

via Content Index status of all or most of the mailbox databases in the environment shows „Failed“.