Skip to content

Instantly share code, notes, and snippets.

@jangeador
Created December 10, 2019 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jangeador/0cefe95ac60f1488801cbd8b0f0f96c8 to your computer and use it in GitHub Desktop.
Save jangeador/0cefe95ac60f1488801cbd8b0f0f96c8 to your computer and use it in GitHub Desktop.
manipulate exchange services except pop3 and imap with powershell
# show services
Get-Service *Exchange* | where {($_.name -notlike "*imap5*") -and ($_.name -notlike "*pop3*")}
# start services
Get-Service *Exchange* | where {($_.name -notlike "*imap5*") -and ($_.name -notlike "*pop3*")} | Start-Service
# restart services
Get-Service *Exchange* | where {($_.name -notlike "*imap5*") -and ($_.name -notlike "*pop3*")} | Restart-Service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment