How to find running services in Powershell?

Powershell offers simple and quick ways to find all the running services in Windows. You can even export the list of running services to a text file or a CSV file.

We will look at two ways by which we will get a list of running services and export the output to a CSV file.

Find running services using Powershell cmdlet

To find the running services on a Windows computer, we can use the Get-Service cmdlet. The Get-Service cmdlet can actually list all the services that are running on the Windows computer.

However, we need to find only those services that are running on the Windows computer at a given time. To do this, we need to put a condition check on the Get-Service cmdlet.

The following command can be used to get or find all services that are running on a Windows computer.

Get-Service | Where-Object {$_.status -eq “Running”}

You can see that the Get-Service cmdlet has been qualified with the Where-Object condition to fetch services that are running on a Windows computer.

The output of this cmdlet is displayed below in the screenshot. All the services that are running on a Windows computer are listed on the console. It makes for a quick check to see all the services that are running on the computer.

Get running services on Windows computer using Powershell.

The output is truncated for obvious reasons. But, your console would display all the running services on a Windows computer without any issues.

Now, to find and export all running services to a CSV file we will use the following cmdlet in Powershell.

Get-Service | Where-Object {$_.status -eq “Running”} | Out-file d:\test_folder_1\services_012023.csv

We have taken the Get-service cmdlet and piped it through the Where-object condition. Out-file is used to create the output file that contains a list of all the services that are running on a Windows computer.

The CSV file that is created will contain the list of services in a single consolidated column.

The screenshot below lists the command that is used to fetch the services that are running on a Windows computer. For result verfication, I have shared a screenshot of the CSV file. In all, the CSV file contained names of 127 services that are running on the computer.

The CSV file contains a list of services running on the computer as per the screenshot given below. You may have to use text to columns in excel to make the output more meaningful for analysis.

Running services on a Windows computer using Powershell.

Summary

In this Powershell tutorial, we have seen how we can bring up a list of running services on the computer. We have also seen how the list of running services can be exported to a CSV file.

You may like to read the following content related to Powershell tutorials:

How useful was this post?

Click on a star to rate it!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Rajesh Dhawan

Rajesh Dhawan is a technology professional who loves to blog about smart wearables, Cloud computing and Microsoft technologies. He loves to break complex problems into manageable chunks of meaningful information.