Skip to content

Instantly share code, notes, and snippets.

@chrisbrownie
Created November 2, 2016 11:28
Show Gist options
  • Select an option

  • Save chrisbrownie/5266366490cde805e5a0e2bd7cff8eb1 to your computer and use it in GitHub Desktop.

Select an option

Save chrisbrownie/5266366490cde805e5a0e2bd7cff8eb1 to your computer and use it in GitHub Desktop.
$Servers = Get-ExchangeServer | ? IsE15OrLater | Select -exp Name
Get-Service -ComputerName $servers -Name “MSExchangeIMAP4”,”MSExchangeIMAP4BE” | Set-Service -StartupType Automatic
Get-Service -ComputerName $servers -Name “MSExchangeIMAP4”,”MSExchangeIMAP4BE” | Start-Service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment