Restart-ExchangeServices.psm1
function Restart-ExchangeServices { $services = Get-Service | ? { $_.name -like "MSExchange*" -and $_.Status -eq "Running"} foreach ($service in $services) {Restart-Service $service.name -Force} } |