Created
December 10, 2019 19:57
-
-
Save jangeador/0cefe95ac60f1488801cbd8b0f0f96c8 to your computer and use it in GitHub Desktop.
manipulate exchange services except pop3 and imap with powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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