Get-MapiVirtualDirectory | Set-MapiVirtualDirectory -InternalUrl https://exchangehostname/mapi -ExternalUrl https://exchangehostname/mapi -IISAuthenticationMethods Negotiate,NTLM,Basic
Set-OrganizationConfig -MapiHttpEnabled $true
Get-MapiVirtualDirectory | Set-MapiVirtualDirectory -InternalUrl https://exchangehostname/mapi -ExternalUrl https://exchangehostname/mapi -IISAuthenticationMethods Negotiate,NTLM,Basic
Set-OrganizationConfig -MapiHttpEnabled $true
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
}
use LogExpert or LogParser to analyse logs of Exchange or other Microsoft products
LogExpert
https://logexpert.codeplex.com/releases/view/610775
LogParser
http://www.microsoft.com/en-us/download/details.aspx?id=24659
remove Folder C:\Program Files\Microsoft\Exchange Server\V15\Logging\lodctr_backups after Installation of Exchange or an CU upgrade to free up disk space
cd $exbin
forfiles /P Search\Ceres\Diagnostics\ETLTraces /M *.etl /C „cmd /c del @path“ /D -1
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.
forfiles /P C:\inetpub\logs /S /M *.log /C „cmd /c del @path“ /D -1
use with parameter in cmd
forfiles /P %1 /S /M %2 /C „cmd /c del @path“ /D %3
=logRollover.cmd „C:\inetpub\logs“ „*.log“ -1
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 :
Get-MailboxDatabase -Status | select Name,@{Label=“Free Space“;Expression={$_.AvailableNewMailboxSpace.ToMB()}},@{Label=“Size“;Expression={$_.DatabaseSize.ToMB()}},@{Name=“NumberofUsers“;Expression={(Get-Mailbox -resultsize unlimited -Database $_.name).Count}} | ft -auto
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“.