O'Reilly logo

Windows PowerShell™ 2.0: Administrator’s Pocket Consultant by William R. Stanek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing System Services

Services provide key functions to workstations and servers. To manage system services on local and remote systems, you use the following commands:

  • Get-Service. Gets information about the services on a local or remote computer, including running and stopped services. You can specify services by their service names or display names, or you can pass in references to service objects to work with.

    Get-Service [[-Name] ServiceNames] [AddlParams]
    Get-Service -DisplayName ServiceNames [AddlParams]
    Get-Service [-InputObject ServiceObjects] [AddlParams]
    
    {AddlParams}
    [-ComputerName ComputerNames] [-DependentServices] [-Exclude
    ServiceNames] [-Include ServiceNames] [-ServicesDependedOn]
  • Stop-Service. Stops one or more running services. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required