Service commands in Windows Powershell

You can get list of all service commands in Powershell using below command.



Viewing services

You can view all services using below syntax.

> Get-Service

You can use below command to view specific service.

> Get-Service -Name <service-name>

Stopping services

Get-Service -Name <service-name> | Stop-Service

Starting service

Start-Service <service-name>

Restarting services

Restart-Service <service-name>

Here is the list of other service commands.

  1. Suspend-Service – This Cmdlet lets you to suspend the services.
  2. Resume-Service – This Cmdlet allows you to resumes services.
  3. New-Service – This Cmdlet allows you to create a new service.

You may also like...