How to export Windows Services list using command line

You can use the Command Prompt or the Get-Service PowerShell cmdlet t0 generate a list of Running or Stopped Windows Services. This post will show you how you can generate a list of Windows Services running on your Windows 10/8/7 computer.

How to export Windows Services list

Export Windows Services list using command line in CMD

Open an elevated Command Prompt, type the following and hit Enter:

sc query type= service > "%userprofile%\Desktop\ServicesList.txt"

This will save the list as a text file on your Desktop.

Use PowerShell to generate list of Windows Services

The Get-Service cmdlet is designed to retrieve information about the services installed on your computer. Using the Get-Service PowerShell cmdlet, you can generate a list of Windows Services running on your Windows 10/8/7 computer.

How to export Windows Services list

Open an elevated PowerShell console, type Get-Service and hit Enter. You will see a list of all the Services installed on your Windows system.

You can also filter out the results using the filtering capabilities of Windows PowerShell. Make use of the parameters to achieve this. You can generate a list of Running Services as well as Stopped Services. You can also sort them by name using the Sort-Object cmdlet. You can go a step forward and even output the list to GridView.

For instance, you can use the Get-Service cmdlet, filter the status on the word Running, and then output to the GridView, by using the following command:

Get-Service | Where Status -eq "Running" | Out-GridView

This will generate a list of the Running Services, and another window will open to show the result.

To retrieve information about Stopped Services on a remote computer, and output it to GridView, use -ComputerName parameter, as shown below:

Get-Service -ComputerName RemoteComputerName | Where Status -eq "Stopped" | Out-GridView

To export the list of Windows Services, use the following command:

Get-Service | Where-Object {$_.Status -eq "Running"} | Out-File -filepath "$Env:userprofile\Desktop\ServicesList.txt"

This will save the list as a text file on your Desktop.

These were just three examples. Read more about Get-Service on TechNet.

Now take a look at how to Export and Backup Device Drivers in Windows 10 using PowerShell.

Using Windows PowerShell, you can also update Windows Defender definitions, list Drives, uninstall Universal apps, find scheduled tasks queued status, create System Image, create desktop shortcut to open Windows Store apps, get an Installed Driver list, export Drivers and more!

Download this VPN to secure all your Windows devices and browse anonymously
Posted by on , in Category Windows with Tags
Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP Awardee in Windows (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.