TechBuzzPro

How to Export Windows Services List: 10 Methods

· 6 min read · Windows & PC

In this article
  1. 1. Use the sc query command in Command Prompt
  2. 2. Use PowerShell Get-Service with Export-Csv
  3. 3. Use PowerShell Get-CimInstance for detailed service information
  4. 4. Use the sc queryex command for extended status
  5. 5. Use the net start command for a simple list of running services
  6. 6. Use the Windows Management Instrumentation Command-line (WMIC)
  7. 7. Use the Services MMC snap-in with a custom filter and copy
  8. 8. Use a PowerShell script to export to HTML or XML
  9. 9. Use the Task Scheduler or a batch file to automate exports
  10. 10. Use third-party tools like Sysinternals PsService
  11. How to Choose
  12. Frequently Asked Questions
  13. Final Thoughts

You can export the list of services from Windows Service Manager (services.msc) by using built-in command-line tools like sc query or PowerShell's Get-Service to generate a text or CSV file. The graphical Service Manager itself has no export button, so you need to use these alternatives. This list covers ten practical methods for capturing service names, display names, status, and startup types, and it is aimed at IT support staff, system administrators, and power users who need to document, audit, or troubleshoot Windows services. Each method below produces a usable file you can open in Notepad, Excel, or another tool.

1. Use the sc query command in Command Prompt

The sc query command lists all running services with their service name, display name, and state. To export the full list, open Command Prompt as administrator and run sc query type= service state= all > services.txt. The output is plain text and includes every service, whether running or stopped. This is the quickest way to get a raw dump without installing anything extra. Note that the equals sign after type and state must be followed by a space, or the command will fail.

2. Use PowerShell Get-Service with Export-Csv

PowerShell's Get-Service cmdlet returns objects with properties like Name, DisplayName, Status, and StartType. Pipe it to Export-Csv to create a structured file: Get-Service | Export-Csv -Path services.csv -NoTypeInformation. The resulting CSV opens cleanly in Excel and includes the startup type (Automatic, Manual, Disabled), which sc query does not show. This is the most flexible method because you can filter or sort before exporting, for example Get-Service | Where-Object {$_.Status -eq 'Running'} | Export-Csv running.csv -NoTypeInformation.

3. Use PowerShell Get-CimInstance for detailed service information

The Get-CimInstance Win32_Service cmdlet provides deeper details than Get-Service, including the path to the executable, start mode, and the account the service runs under. Export it with Get-CimInstance Win32_Service | Select-Object Name, DisplayName, State, StartMode, StartName, PathName | Export-Csv services_detail.csv -NoTypeInformation. This is useful when you need to know which user account a service uses or where its binary lives, which helps with security audits or migration planning. The output is still a standard CSV.

4. Use the sc queryex command for extended status

sc queryex adds the process ID (PID) and service flags to the basic query output. Run sc queryex type= service state= all > services_ex.txt in an elevated Command Prompt. The PID lets you cross-reference with Task Manager to see which process is actually running. This is handy for identifying hung services or tracking down a specific service that is consuming resources. The output is still plain text and includes all services, not just running ones.

5. Use the net start command for a simple list of running services

The net start command lists only services that are currently running, with their display names. Redirect it to a file: net start > running_services.txt. This is the fastest way to get a human-readable list of active services, but it omits stopped services and does not include startup type. It is best for a quick snapshot of what is running right now, such as before installing new software to compare changes later.

6. Use the Windows Management Instrumentation Command-line (WMIC)

Although WMIC is deprecated in newer Windows versions, it still works on many systems. Run wmic service get Name, DisplayName, State, StartMode > services_wmic.txt in Command Prompt. The output is comma-separated and can be imported into a spreadsheet. WMIC provides a middle ground between sc query and PowerShell, but because it is being phased out, prefer PowerShell for long-term scripts. If WMIC is not available, use the CIM cmdlets instead.

7. Use the Services MMC snap-in with a custom filter and copy

You can open Services (services.msc), click on a column header to sort, then use Ctrl+A to select all services and Ctrl+C to copy. Paste into Excel or Notepad. The copied text includes columns for Name, Description, Status, Startup Type, and Log On As, but the formatting is tab-separated and may need cleanup. This method requires no commands and works well for a one-off visual check, but it is not scriptable and can miss hidden services. It is best for quick manual documentation.

8. Use a PowerShell script to export to HTML or XML

For a more presentable report, convert service data to HTML: Get-Service | ConvertTo-Html -Property Name, DisplayName, Status, StartType | Out-File services.html. You can then open the HTML file in any browser and print or share it. For machine-readable output, use Export-Clixml to preserve object types, which can be re-imported later with Import-Clixml. This is ideal for creating audit trails or sharing with colleagues who do not have PowerShell open.

9. Use the Task Scheduler or a batch file to automate exports

If you need to capture the service list regularly, create a batch file containing sc query type= service state= all > C:\Logs\services_%date:~-4,4%%date:~-10,2%%date:~-7,2%.txt and schedule it with Task Scheduler. This produces a dated file each run, letting you compare changes over time. For PowerShell, schedule a script that uses Get-Service | Export-Csv with a timestamp in the filename. Automation is useful for change management or troubleshooting intermittent service failures.

10. Use third-party tools like Sysinternals PsService

Microsoft's Sysinternals PsService (part of the PsTools suite) can list services on local or remote machines. Run psservice \\computername > remote_services.txt to export from another PC on the network. It requires administrative credentials on the target machine. This is the go-to method for auditing multiple computers without logging into each one. Download PsTools only from the official Microsoft Sysinternals website to avoid malware.

How to Choose

Pick based on what you need the list for. If you want a quick, human-readable snapshot, sc query or net start in Command Prompt is fastest. For structured data you can sort and filter in Excel, PowerShell's Export-Csv is the most reliable and includes startup type. If you need details like the executable path or service account, use Get-CimInstance. For remote machines, PsService is the simplest network option. Avoid WMIC for new scripts because it is deprecated. Also consider whether you need only running services or all services, and whether you need to automate the export regularly; in that case, a scheduled PowerShell script or batch file saves time.

Frequently Asked Questions

Can I export the service list directly from services.msc?

No, the Services snap-in has no export button. You must use command-line tools like sc query or PowerShell, or copy the list manually.

What is the difference between sc query and Get-Service?

sc query is a legacy command that outputs plain text and does not show startup type. Get-Service is a PowerShell cmdlet that returns objects with more properties, including StartType, and can be exported to CSV or HTML.

How do I export only running services?

With PowerShell: Get-Service | Where-Object {$_.Status -eq 'Running'} | Export-Csv running.csv -NoTypeInformation. With Command Prompt: net start > running.txt.

Can I export services from a remote computer?

Yes, using PowerShell's -ComputerName parameter with Get-Service (if remoting is enabled), or Sysinternals PsService. Both require administrative rights on the remote machine.

Why does my exported CSV show garbled characters?

This can happen if the file is saved with a different encoding. Use Export-Csv -Encoding UTF8 in PowerShell, or open the file in Notepad and save as UTF-8. Also ensure you are using the correct delimiter for your region.

Final Thoughts

Exporting the Windows services list is straightforward once you know the right tool. For most users, a one-line PowerShell command with Export-Csv gives the best balance of detail and usability. Keep in mind that service names and display names can differ between Windows versions, so always verify the output on the target system. With these ten methods, you can document, audit, or troubleshoot services efficiently.