News

MS Exchange Server - restart all services without a reboot using Powershell.

There are a myriad of ways to restart Exchange services ut using Powershell is probably the quickest.

[PS] C:>Get-Service *Exchange* | Where {$_.DisplayName -notlike "*Hyper-V*"} | Restart-Service -Force

The above line restarts everything, whilst this just restarts those that are already running.

[PS] C:>$services = Get-Service | ? { $_.name -like "MSExchange*" -and $_.Status -eq "Running"};foreach ($service in $services) {Restart-Service $service.name -Force}

Tested on MSX 2019.

<< Go back to the previous page