I’m doing more and more with Powershell and whilst I’m no programmer, I’m going to post a few tips that I find along the way that make it easy to deal with things. Todays tip is about Services and how to handle them. Here are a few that I’ve used today whilst onsite doing work for a client to deal with their servers service configurations. We needed to stop and start a number of services.
So firstly we make sure we have the right service.
I used Get-Service msexchangesa |fl which shows me as a Formatted List (the FL parameter) the information about this service as you can see below.
Then we can use the Stop-Service command, then a few other commands to do what we wanted to do and then Start-Service to start the service once more. Simple when you know how
Here’s the Microsoft command references for these services.
Leave a Reply