Script to restart all automatic services for exchange 3010

hi there,
Please do you know if it exits a command line with powershell to restart all automatic services without restart ?
Who is Participating?
Ben HartConnect With a Mentor Commented:
Or this in batch form:
@Echo Off
Echo 'Stopping Microsoft Exchange Services'
net stop MSExchangeAB
net stop MSExchangeADTopology
net stop MSExchangeAntispamUpdate
net stop MSExchangeEdgeSync
net stop MSExchangeFBA
net stop MSExchangeFDS
net stop MSExchangeIS
net stop MSExchangeMailboxAssistants
net stop MSExchangeMailboxReplication
net stop MSExchangeMailSubmission
net stop MSExchangeProtectedServiceHost
net stop MSExchangeRepl
net stop MSExchangeRPC
net stop MSExchangeSA
net stop MSExchangeSearch
net stop MSExchangeServiceHost
net stop MSExchangeThrottling
net stop MSExchangeTransport
net stop MSExchangeTransportLogSearch
Echo 'Starting Microsoft Exchange Services'
net start MSExchangeAB
net start MSExchangeADTopology
net start MSExchangeAntispamUpdate
net start MSExchangeEdgeSync
net start MSExchangeFBA
net start MSExchangeFDS
net start MSExchangeIS
net start MSExchangeMailboxAssistants
net start MSExchangeMailboxReplication
net start MSExchangeMailSubmission
net start MSExchangeProtectedServiceHost
net start MSExchangeRepl
net start MSExchangeRPC
net start MSExchangeSA
net start MSExchangeSearch
net start MSExchangeServiceHost
net start MSExchangeThrottling
net start MSExchangeTransport
net start MSExchangeTransportLogSearch

Open in new window

baller119Connect With a Mentor Commented:
There is no single command. But you could use this script.

$ignorePattern = '^(ShellHWDetection|MMCSS|sppsvc|clr_optimization.*)$';
Get-WmiObject Win32_Service 
  $_.StartMode -eq 'Auto' `
  -and $_.State -ne 'Running' `
  -and $_.Name -notmatch $ignorePattern
  $svcName = $_.Name; 
  Restart-Service -Name $_.Name -EA SilentlyContinue; 

Open in new window

Manpreet SIngh KhatraConnect With a Mentor Solutions Architect, Project LeadCommented:
Much more from the source article itself ...... details or code stated above

Restarting All Running Services

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

Script allows you to Start, Stop or Restart Exchange Server 2010 service (only in theses Automatic startup mode)

Automatically restart failed Exchange services using PowerShell

- Rancy
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.