Solved

Script to restart all Exchange 2013 Services

Posted on 2014-11-22
4
2,897 Views
Last Modified: 2014-11-23
All,

Is there a script PowerShell, VbScript, or Batch file that exists to easily (loose term) restart all Exchange 2013 services.

Thanks for any feedback.

Chad
0
Comment
Question by:webitservices
  • 2
4 Comments
 
LVL 7

Expert Comment

by:joensw
ID: 40459501
hi

yes there are command-line methods you can use to stop and/or start services. If this is being done locally, you would use NET STOP or NET START:


net stop MSExchangeMSMI
net stop MSExchangePCMTA
net stop MSExchangeFB
net stop MSExchangeDX
net stop MSExchangeIMC
net stop MSExchangeMTA
net stop MSExchangeIS
net stop MSExchangeDS
net stop MSExchangeSA

To start these same services, you would use this batch file:

net start MSExchangeSA
net start MSExchangeDS
net start MSExchangeIS
net start MSExchangeMTA
net start MSExchangeIMC
net start MSExchangeDX
net start MSExchangeFB
net start MSExchangePCMTA
net start MSExchangeMSMI



http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_28140960.html
0
 
LVL 20

Accepted Solution

by:
Lazarus earned 500 total points
ID: 40460484
you could try these PowerShell commands: Make sure to run them with the PowerShell run as administrator

PowerShell Stop Exchange Services
Get-service -name "msexchange*" -dependentservices Where-Object {$_.Status -eq 'Running'} Stop-Service

PowerShell Start Exchanges Services
Test-ServiceHealth | Select-Object -Expand ServicesNotRunning | Start-Service
0
 

Author Comment

by:webitservices
ID: 40460773
Lazarus98 that was close enough but I took what you said and had to make some changes for it to work.  Ran it twice and seems to work great!  Thanks for the replies and help!

Stop Services
Get-service -name "msexchange*" -dependentservices | Where-Object {$_.Status -eq 'Running'} | Stop-Service

Start Services
Get-service -name "msexchange*" -dependentservices | Where-Object {$_.Status -eq 'stopped'} | Start-Service
0
 
LVL 20

Expert Comment

by:Lazarus
ID: 40461275
I'm a asumming the change is because of the 2013 version, I only had 2010 to test that on, thanks for the update though as it will help me when I change over to our new severs.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
Find out what you should include to make the best professional email signature for your organization.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
This video discusses moving either the default database or any database to a new volume.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now