Windows Services

There are three useful cmdlets to help you work with Windows Services, which are as follows:

  • Get-Service - useful way to find one or more Windows Services
  • Stop-Service - stop a Windows Service
  • Start-Service - start an existing Windows Service
There are more commands like "Suspend-Service" and "Resume-Service" but the above are the basics. The best way to use them is combined together like this:
Get-Service *agent*
Get-Service MyAgentService | Stop-Service
Clearly you need to be careful how many result you pipe to the stop command!