Powershell Service Management

#powershell

Get-Service # list all services
Stop-Service foo
Start-Service foo

Get details of a running service:

Get-WmiObject win32_service | ?{$_.Name -like 'MY_SERVICE'} | select Name, DisplayName, State, PathName