PowerShell Exchange 2010 - gestion des services

Source: http://careexchange.in/managing-microsoft-exchange-services-with-windows...

Mettre tous services en disable (statup): Get-Service | where{$_.Name –Like ‘MSExchange*’} | set-Service –StartupType ‘Disabled’
                                   auto                 Get-Service | where{$_.Name –Like ‘MSExchange*’} | set-Service –StartupType ‘Automatic’

Stopper tous services: Get-Service | where{$_.Name –Like ‘MSExchange*’} | stop-Service –Force
Lancer        "               Get-Service | where{$_.Name –Like ‘MSExchange*’} | start-Service
Voir état                      Get-Service | where{$_.Name –Like ‘MSExchange*’}

stop start notes
Relancer services Exchange 2010
Stop-Service MSExchangeAB
Stop-Service MSExchangeADTopology
Stop-Service MSExchangeAntispamUpdate
Stop-Service MSExchangeEdgeSync
Stop-Service MSExchangeFBA
Stop-Service MSExchangeFDS
Stop-Service MSExchangeIS
Stop-Service MSExchangeMailboxAssistants
Stop-Service MSExchangeMailboxReplication
Stop-Service MSExchangeMailSubmission
Stop-Service MSExchangeProtectedServiceHost
Stop-Service MSExchangeRepl
Stop-Service MSExchangeRPC
Stop-Service MSExchangeSA
Stop-Service MSExchangeSearch
Stop-Service MSExchangeServiceHost
Stop-Service MSExchangeThrottling
Stop-Service MSExchangeTransport
Stop-Service MSExchangeTransportLogSearch
Start-Service MSExchangeAB
Start-Service MSExchangeADTopology
Start-Service MSExchangeAntispamUpdate
Start-Service MSExchangeEdgeSync
Start-Service MSExchangeFBA
Start-Service MSExchangeFDS
Start-Service MSExchangeIS
Start-Service MSExchangeMailboxAssistants
Start-Service MSExchangeMailboxReplication
Start-Service MSExchangeMailSubmission
Start-Service MSExchangeProtectedServiceHost
Start-Service MSExchangeRepl
Start-Service MSExchangeRPC
Start-Service MSExchangeSA
Start-Service MSExchangeSearch
Start-Service MSExchangeServiceHost
Start-Service MSExchangeThrottling
Start-Service MSExchangeTransport
Start-Service MSExchangeTransportLogSearch
Address Book
donne info topo AD à divers services Exch
 

Voir aussi script http://therealshrimp.blogspot.fr/2010/03/restarting-exchange-2010-services.html

Checks

Vérif si les services requis tournent : Test-Servicehealth
Maibox montées ? Get-MailboxDatabase ; La db répond aux request MAPI ? Test-MapiConnectivity ; emails passent entre 2 srv? Test-MailFlow

Get-MailboxDatabaseCopyStatus (pour members DAG) pour vérifierle statut des copies de la db, queues, et indexes de contenu.

Services non lancés qui sont en lancement auto (avec WMI)

Get-WmiObject -Class Win32_Service -Filter "StartMode='Auto' AND State='Stopped'" | sort DisplayName | Format-Table DisplayName, StartMode, State
(source: http://therealshrimp.blogspot.fr/2012/02/powershell-get-service-status-c...)