How to show the names of all the services:
Get-service
How to start a service locally:
Start-service " " -passthru
How to stop a service locally:
Stop-service " " -passthru
How to restart a service locally:
Restart-service " " -passthru
(Insert the name of the service in the " " field!)
How to show the names of the services on a remote computer:
Get-service -ComputerName " "
How to start a service remotely:
Get-service " " -ComputerName " " | Start-service -Passthru
How to stop a service remotely:
Get-service " " -ComputerName " " | Stop-service -Passthru
How to restart a service remotely:
Get-service " " -ComputerName " " | Restart-service -Passthru
(Insert the name of the service in the first " " field!)
(Insert the name of the computer in the second " " field!)