Перезапустите службы Exchange Server через PowerShell.
Restart Exchange Server services through PowerShell
Sometimes you need to restart the Exchange Server services. You have the option to restart the Exchange Server. Restarting will take more time and effort than restarting the Exchange services. It’s possible to restart the services through services.msc. It’s not as fast as restarting the services through PowerShell. In this article, you will learn how to restart Exchange Server services through PowerShell.
Table of contents
Get a list of Exchange services
Run Exchange Management Shell as administrator. Let’s first get a list of all the Exchange services on the server. This can be running and stopped services. We are going to use the Get-Service cmdlet.
The output appears.
Restart all Exchange running services
Only restart the Exchange running services.
What if there are Exchange services not running? The above command will not restart these Exchange services.
Restart all Exchange services with startup type automatic
Restart all Exchange services with startup type automatic. If an Exchange service is stopped at the moment with startup type automatic, it will start after running the command.
Restart all Exchange services
The third and last command in the article will restart all the Exchange services.
Conclusion
With the proper PowerShell command, you can restart all the Exchange services. Suppose you don’t want to use PowerShell; use Windows Services Manager (services.msc). But it’s faster to use the PowerShell commands.
Did you enjoy this article? You may also like Restart Exchange services with PowerShell script. Don’t forget to follow us and share this article.
Комментарии
Отправить комментарий