Restart Exchange 2007 Services From Powershell
Restart Exchange 2007 Services From Powershell
http://windowsserveradministration.blogspot.com/2011/03/restart-exchange-2007-services-from.html
If you are troubleshooting Exchange Server 2007 than it will be good to have a look at the Services on which Exchange Server 2007 depends.
Cut-Paste the following code in Powershell to RESTART Exchange Server 2007 services on your Exchange Server.
Stop-Service MSExchangeAdTopology
Stop-Service MSExchangeAntiSpamUpdate
Stop-Service MSExchangeEdgeSync
Stop-Service MSExchangeFDS
Stop-Service MSExchangeIMAP4
Stop-Service MSExchangeIS
Stop-Service MSExchangeMailSubmission
Stop-Service MSExchangeMailboxAssistants
Stop-Service MSExchangeMonitoring
Stop-Service MSExchangePOP3
Stop-Service MSExchangeRepl
Stop-Service MSExchangeSearch
Stop-Service MSExchangeServiceHost
Stop-Service MSExchangeSA
Stop-Service MSExchangeTransport
Stop-Service MSExchangeTransportLogSearch
Stop-Service msftesql-Exchange -Force
Start-Service MSExchangeAdTopology
Start-Service MSExchangeAntiSpamUpdate
Start-Service MSExchangeEdgeSync
Start-Service MSExchangeFDS
Start-Service MSExchangeIMAP4
Start-Service MSExchangeIS
Start-Service MSExchangeMailSubmission
Start-Service MSExchangeMailboxAssistants
Start-Service MSExchangeMonitoring
Start-Service MSExchangePOP3
Start-Service MSExchangeRepl
Start-Service MSExchangeSearch
Start-Service MSExchangeServiceHost
Start-Service MSExchangeSA
Start-Service MSExchangeTransport
Start-Service MSExchangeTransportLogSearch
Start-Service msftesql-Exchange
You do not have to start the services highlighted in GREEN if you are not using POP3 or IMAP4.
After running the above code give it a 30 seconds for all the services to come up.
————————————————————————————————-
YOU CAN DO THIS WAY TOO !!
Restart-Service MSExchangeAdTopology -Force
Restart-Service MSExchangeAntiSpamUpdate -Force
Restart-Service MSExchangeEdgeSync -Force
Restart-Service MSExchangeFDS -Force
Restart-Service MSExchangeIMAP4 -Force
Restart-Service MSExchangeIS -Force
Restart-Service MSExchangeMailSubmission -Force
Restart-Service MSExchangeMailboxAssistants -Force
Restart-Service MSExchangeMonitoring -Force
Restart-Service MSExchangePOP3 -Force
Restart-Service MSExchangeRepl -Force
Restart-Service MSExchangeSearch -Force
Restart-Service MSExchangeServiceHost -Force
Restart-Service MSExchangeSA -Force
Restart-Service MSExchangeTransport -Force
Restart-Service MSExchangeTransportLogSearch -Force
Restart-Service msftesql-Exchange -Force -Force
———————————————————————————————————–
IF YOUR EXCHANGE SERVER IS UNSTABLE AFTER RESTARTING SERVICE THAN THIS CMDLET WILL MAKE SURE THAT ALL THE REQUIRED SERVICES ARE RUNNING
Test-ServiceHealth | Select-Object -Expand ServicesNotRunning | Start-Service