Restart AutoD Application Pool across servers

Changes to AutoDiscover settings in Exchange are cached by each AutoD IIS application for approximately 2 hours. If you want to have configuration changes available quickly, it is required to restart the AutoD application pool on each Client Access Server serving AutoD request. Additionally, you have to restart the MSExchangeServiceHost process as well.

The PowerShell code can restart the application pool and the MSExchangeServerHost process across all Exchange 2013 servers.

Restart Application Pool

Get-ExchangeServer | ? { $_.AdminDisplayVersion -like '*15.*'} | % { Invoke-Command -ComputerName $_.Name -ScriptBlock {Restart-WebAppPool MSExchangeAutodiscoverAppPool } }

Restart MSExchangeServiceHost

Get-ExchangeServer | ? { $_.AdminDisplayVersion -like '*15.*'} | % { Invoke-Command -ComputerName $_.Name -ScriptBlock {Restart-Service MSExchangeServiceHost } }


Do you need assistance with your Exchange Server setup? Do you have questions about your Exchange Server infrastructure and going hybrid? Are you interested in what Exchange Server 2016 offers for your environment?

Contact me at
Follow at

%d Bloggern gefällt das: