Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $autos = "MSExchangeADTopology",
- "MSExchangeAntispamUpdate",
- "MSExchangeDagMgmt",
- "MSExchangeDiagnostics",
- "MSExchangeEdgeSync",
- "MSExchangeFrontEndTransport",
- "MSExchangeHM",
- "MSExchangeImap4",
- "MSExchangeIMAP4BE",
- "MSExchangeIS",
- "MSExchangeMailboxAssistants",
- "MSExchangeMailboxReplication",
- "MSExchangeDelivery",
- "MSExchangeSubmission",
- "MSExchangeRepl",
- "MSExchangeRPC",
- "MSExchangeFastSearch",
- "HostControllerService",
- "MSExchangeServiceHost",
- "MSExchangeThrottling",
- "MSExchangeTransport",
- "MSExchangeTransportLogSearch",
- "MSExchangeUM",
- "MSExchangeUMCR",
- "FMS",
- "IISADMIN",
- "RemoteRegistry",
- "SearchExchangeTracing",
- "Winmgmt",
- "W3SVC"
- $mans = "MSExchangePop3",
- "MSExchangePOP3BE",
- "wsbexchange",
- "AppIDSvc",
- "pla"
- #Enable Services
- foreach($service in $autos)
- {
- Set-Service -Name $service -StartupType Automatic
- Write-Host "Enabling "$service
- }
- foreach($service2 in $mans)
- {
- Set-Service -Name $service2 -StartupType Manual
- Write-Host "Enabling "$service2
- }
- #Start Services
- foreach($service in $autos)
- {
- Start-Service -Name $service
- Write-Host "Starting "$service
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement