Exchange Server 2016 transfer directory TEMP file full handling
After the installation of Exchange Server 2016 is completed, there will be a TEMP folder under the transport service directory. This folder is full and easy to cause the transport service to stop directly. The specific location is as follows (depending on the installation path, the directory may be different), as shown in the figure.
Generally, after this situation occurs, you can manually clean up the TEMP folder, or you can use scripts to clean it regularly, but there are three points to note:
1) Find out where the reason for the sharp increase of TEMP is, generally look at the log, if you can't solve it by looking at the log, you need to open the case;
2) Do a good job of monitoring to prevent the disk from being full again, causing the transmission service to stop. The monitoring method is generally SCOM or zabbix. If the disk space is less than 20%, the alarm will be given.
3) If you right-click to view the size of this directory, the default is 0KB, because there is no permission, so you need to seize power first, you can see the true size after seizing power; if the disk space is full, you will fail to seize power, this needs attention, be sure to monitor, disk space must not be full. If it was really full, he could only delete it.
The script cleans the TEMP folder in a way that you can refer to (the path needs to be modified according to your actual environment)
https://torearnespro.wordpress.com/2015/10/06/delete-old-logs-on-exchange-servers/
forfiles /p C:\inetpub\logs /s /m *.log /d -14 /c "cmd /c del @path"
forfiles /p C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\ETLTraces /s /m *.log /d -14 /c "cmd /c del @path"
forfiles /p C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\Logs /s /m *.log /d -14 /c "cmd /c del @path"
forfiles /p C:\Program Files\Microsoft\Exchange Server\V15\Logging /s /m *.log /d -14 /c "cmd /c del @path"
forfiles /p C:\Program Files\Microsoft\Exchange Server\V15\Logging\Diagnostics\PerformanceLogsToBeProcessed /s /m *.log /d -14 /c "cmd /c del @path"
forfiles /p C:\Program Files\Microsoft\Exchange Server\V15\Logging\Monitoring\Monitoring\MSExchangeHMWorker\ActiveMonitoringTraceLogs /s /m *.log /d -14 /c "cmd /c del @path"
forfiles /p C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\Temp /s /m *.log /d -14 /c "cmd /c del @path"
For more information on the answer to this question, please refer to the link below:
https://social.technet.microsoft.com/Forums/en-US/8b1fd1b3-86eb-43ad-a433-c294cedd2c16/exchange-2013-transportrolesdatatemp-grows-and-make-disk-full? forum=exchangesvradmin
https://social.technet.microsoft.com/Forums/en-US/8fe755e5-bbac-470a-8031-727f6d4d64c0/temp-and-mailque-growing-very-large? forum=exchangesvradmin
https://blogs.technet.microsoft.com/exchange/2013/05/06/ask-the-perf-guy-sizing-exchange-2013-deployments/
For more information, please refer to Weixin Official Accounts below