Clear Exchange 2013 Log Files based on age.

Clear logs in a single Exchange 2013 Server: Set-Executionpolicy RemoteSigned $days=30 #You can change the number of days here $IISLogPath=”C:inetpublogsLogFiles” $ExchangeLoggingPath=”C:Program FilesMicrosoftExchange ServerV15Logging” Write-Host “Removing IIS and Exchange logs; keeping last” $days “days” Function CleanLogfiles($TargetFolder) {     if (Test-Path $TargetFolder) … Continue reading Clear Exchange 2013 Log Files based on age.