O'Reilly logo

Mastering Windows PowerShell Scripting by Brenton J.W. Blawat

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 Windows services

When you are working with Microsoft-based systems, there may be times where you need to interact with Windows services. PowerShell offers a variety of cmdlets that enable you to work with these services. To start, you can review the services on a system by leveraging the get-service cmdlet. By calling the get-service cmdlet, you can retrieve the full list of services on a system. If you want to obtain a filtered view into a specific service, you can leverage the –Name parameter, referencing a specific name of a service. After executing this command, you will see Status, Name, and DisplayName of the service. You may also issue the –RequiredServices parameter to display the services that are required to be running, for ...

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