![]() ![]() Use IsEdge switch when running on an Exchange Server holding the EDGE roleĮxamples # EXAMPLE 1# Delete Exchange and IIS log files older than 14 days.It is assumed that the IIS log file location is identical across all Exchange servers.The IIS log file location is read from the local IIS Metabase of the LOCAL server where the script is executed and is used to build an administrative UNC path for IIS log file deletions. ![]() It is assumed that the Exchange setup path is IDENTICAL across all Exchange servers, when not using the UseDynamicExchangePaths parameter.Optionally, you can use the Active Directory configuration partition to determine the Exchange install path dynamically, if supported in your Active Directory environment. The Exchange log file location is read from the environment variable and used to build an administrative UNC path for file deletions. This script deletes all Exchange and IIS logs older than X days from all Exchange 2013+ servers that are fetched using the Get-ExchangeServer cmdlet. Last updated: | NOTE: If you are still using v2.1 update to themost recent ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |