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

John Savill

April 15, 2008

1 Min Read
ITPro Today logo

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"}

About the Author(s)

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like