Subscribe to Windows IT Pro
April 16, 2008 12:00 AM

Q. How can I use Windows PowerShell to return a list of machine services in a designated state?

Windows IT Pro
InstantDoc ID #98944
Rating: (0)
A. You can use PowerShell to examine a service object's Status property. You query the Status property with the Where-Object cmdlet, for example, to list only running services, as follows:

get-service | where-object {$_.status -eq "Running"}

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.