################################################################ # # Set the Exchange Services to their default startup values # and start the services if they are stopped # # Created: 01.01.19 / Urs Heeb # # Source of default values: # https://docs.microsoft.com/en-us/exchange/plan-and-deploy/deployment-ref/services-overview?view=exchserver-2019 # # Script based on Exchange 2016 # ################################################################# # Configure the Microsoft Services and start it after config Set-Service -Name Winmgmt -StartupType Automatic -Status Running -PassThru Set-Service -Name W3SVC -StartupType Automatic -Status Running -PassThru Set-Service -Name IISADMIN -StartupType Automatic -Status Running -PassThru # Configure the Exchange Services # and start the required services direct after config Set-Service -Name FMS -StartupType Automatic -Status Running -PassThru Set-Service -Name MSExchangeADTopology -StartupType Automatic -Status Running -PassThru Set-Service -Name MSExchangeAntispamUpdate -StartupType Automatic Set-Service -Name MSComplianceAudit -StartupType Automatic Set-Service -Name MSExchangeCompliance -StartupType Automatic Set-Service -Name MSExchangeDagMgmt -StartupType Automatic Set-Service -Name MSExchangeDiagnostics -StartupType Automatic Set-Service -Name MSExchangeEdgeSync -StartupType Automatic Set-Service -Name MSExchangeFrontEndTransport -StartupType Automatic Set-Service -Name MSExchangeHM -StartupType Automatic Set-Service -Name MSExchangeHMRecovery -StartupType Automatic Set-Service -Name MSExchangeIMAP4 -StartupType Manual Set-Service -Name MSExchangeIMAP4BE -StartupType Manual Set-Service -Name MSExchangeIS -StartupType Automatic Set-Service -Name MSExchangeMailboxAssistants -StartupType Automatic Set-Service -Name MSExchangeMailboxReplication -StartupType Automatic Set-Service -Name MSExchangeDelivery -StartupType Automatic Set-Service -Name MSExchangeSubmission -StartupType Automatic Set-Service -Name MSExchangeNotificationsBroker -StartupType Automatic Set-Service -Name MSExchangePOP3 -StartupType Manual Set-Service -Name MSExchangePOP3BE -StartupType Manual Set-Service -Name MSExchangeRepl -StartupType Automatic Set-Service -Name MSExchangeRPC -StartupType Automatic Set-Service -Name MSExchangeFastSearch -StartupType Automatic Set-Service -Name HostControllerService -StartupType Automatic Set-Service -Name WSBExchange -StartupType Manual Set-Service -Name MSExchangeServiceHost -StartupType Automatic Set-Service -Name MSExchangeThrottling -StartupType Automatic Set-Service -Name MSExchangeTransport -StartupType Automatic Set-Service -Name MSExchangeTransportLogSearch -StartupType Automatic Set-Service -Name MSExchangeUM -StartupType Automatic Set-Service -Name MSExchangeUMCR -StartupType Automatic #Start all services with Startup Type "Automatic" but not "Software Protection" Get-Service -Exclude "sppsvc" | Where-Object {$_.StartType -eq "Automatic"} | Where-Object {$_.Status -ne "Running"} | Set-Service -Status Running -PassThru