Restart-ExchangeIIS
One issue Exchange engineers run into from time to time, is the need to restart IIS (Internet Information Services). Here is a simple way to restart IIS on all Exchange servers in the organization:
Restart-ExchangeIIS
I’ve considered scoping this to say just a few servers, but then, that’s easy to remote into a machine and force a service (IIS in this case) to restart, which is why I wrote Restart-IISOnServers. There needed to be a way to blast out a command to every Exchange server in the organization as quickly as possible.
I did have this as a workflow, but since workflows are not getting a lot of love lately, I thought it would be best to keep it simple. That, and the PowerShell Product Group is working on bringing back the ForEach-Object -Parallel option, without the need for a workflow. Can’t wait for that!
You can find this Restart-ExchangeIIS function in the MO_Module. To install the module, simple run this command from an elevated PowerShell prompt:
Install-Module MO_Module