Solved

Script to restart all Exchange 2013 Services

Posted on 2014-11-22
4
4,868 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
In this video we show how to create a Contact 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 Recipients >> Contact ta…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

688 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