TechBuzzPro

How Do I Export the List of Windows Services?

· 5 min read · Windows & PC

In this article
  1. 1. Command Prompt with sc query
  2. 2. PowerShell Get-Service to CSV
  3. 3. PowerShell Get-CimInstance for extra detail
  4. 4. Services Console (services.msc) Export
  5. 5. Using WMIC (deprecated but still present)
  6. 6. Task Manager Export (limited)
  7. 7. Third-Party Tools (e.g., NirSoft ServiWin)
  8. 8. PowerShell Get-Service with Format-Table to Text
  9. 9. Group Policy or Registry Export (advanced)
  10. 10. PowerShell Get-Service with Select-Object and ConvertTo-Html
  11. How to Choose
  12. Frequently Asked Questions
  13. Final Thoughts

You can export the list of Windows services using built-in tools like Command Prompt, PowerShell, or the Services console (services.msc). The quickest method is to open Command Prompt as administrator and run sc query type= service state= all > services.txt. This creates a text file with the service name, display name, and status for every service on the machine. The methods below cover different needs: plain text for reading, CSV for spreadsheets, and PowerShell for filtered or formatted output. They work on Windows 10 and Windows 11; menu labels and command syntax can differ slightly by version, so if a path looks different, look for the closest match.

1. Command Prompt with sc query

The sc command is available on every modern Windows version and requires no extra modules. Run sc query type= service state= all > services.txt in an elevated Command Prompt to capture all services. The output is plain text with four lines per service: SERVICE_NAME, DISPLAY_NAME, STATE, and WIN32_EXIT_CODE. It is easy to read but not ideal for sorting or filtering in a spreadsheet.

2. PowerShell Get-Service to CSV

PowerShell's Get-Service cmdlet returns objects with properties like Name, DisplayName, Status, and StartType. Export them with Get-Service | Export-Csv -Path services.csv -NoTypeInformation. The resulting CSV opens cleanly in Excel or Google Sheets, and you can add | Sort-Object Status or | Where-Object {$_.Status -eq 'Running'} before exporting to narrow the list. This is the best choice when you need to share or analyze the data.

3. PowerShell Get-CimInstance for extra detail

If you need more than the basic service properties, use Get-CimInstance Win32_Service. This returns fields such as StartMode, ProcessId, PathName, and StartName (the account the service runs under). Export it with Get-CimInstance Win32_Service | Select-Object Name, DisplayName, State, StartMode, StartName, PathName | Export-Csv -Path services-detailed.csv -NoTypeInformation. The extra columns help with troubleshooting or auditing, but the output is larger and may include services that are not present in the simpler list.

4. Services Console (services.msc) Export

The graphical Services console does not have a built-in export button. However, you can use the Actions > Export List... option in the menu bar to save the current view as a text file. This captures only the columns visible in the console (Name, Description, Status, Startup Type, Log On As). It is convenient for a quick snapshot, but the file is tab-delimited and lacks the full detail of PowerShell output.

5. Using WMIC (deprecated but still present)

Windows Management Instrumentation Command-line (WMIC) is deprecated in recent Windows versions but still works on many systems. Run wmic service get Name, DisplayName, State, StartMode /format:csv > services.csv to produce a CSV. Because WMIC is being phased out, prefer PowerShell for long-term scripts. If WMIC is missing, use the CIM cmdlet from method 3 instead.

6. Task Manager Export (limited)

Task Manager's Services tab shows running services and their PIDs, but it has no export function. You can manually copy rows or take a screenshot, but for a proper list use one of the command-line methods. Task Manager is useful for a quick visual check, not for generating a file.

7. Third-Party Tools (e.g., NirSoft ServiWin)

NirSoft's ServiWin is a free utility that lists services and drivers with detailed properties and includes an export option (File > Save All Items). It provides more columns than the built-in tools and can export to HTML, CSV, or text. Download it only from the official NirSoft website; avoid unofficial mirrors. This is handy for offline analysis or when you need driver information alongside services.

8. PowerShell Get-Service with Format-Table to Text

For a human-readable text file, pipe Get-Service to Format-Table and then to a file: Get-Service | Format-Table -AutoSize | Out-File services.txt. This preserves the table layout and is easier to read than raw CSV. You can also use Out-File -Encoding utf8 to ensure special characters are handled correctly.

9. Group Policy or Registry Export (advanced)

Service configurations are stored in the registry under HKLM\SYSTEM\CurrentControlSet\Services. You can export that key with reg export HKLM\SYSTEM\CurrentControlSet\Services services.reg, but the resulting file contains binary values and is not a simple list. It is useful for backup or comparison, not for reading. For a readable list, stick to the command-line methods above.

10. PowerShell Get-Service with Select-Object and ConvertTo-Html

If you want an HTML report, use Get-Service | Select-Object Name, DisplayName, Status, StartType | ConvertTo-Html | Out-File services.html. The output is a styled table you can open in any browser. This is ideal for documentation or sharing with someone who does not have PowerShell. Add -Title "Windows Services" to set the page title.

How to Choose

Pick based on what you need the list for. For a quick readable snapshot, use Command Prompt with sc query or PowerShell with Format-Table. For analysis in Excel, choose Export-Csv from Get-Service or Get-CimInstance. If you need extra fields like the service account or executable path, use Get-CimInstance Win32_Service. For a one-off visual check, the Services console export is fine, but it lacks detail. Avoid deprecated tools like WMIC for new scripts. Always run elevated commands in an administrator prompt when exporting system-wide service information, and save the file to a location you can easily find, such as your Desktop or Documents folder.

Frequently Asked Questions

Can I export the list of services without administrator rights?

Yes, you can run Get-Service in a standard PowerShell window and export the results. However, some services may not be visible, and you cannot query certain properties. For a complete list, use an elevated prompt.

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

sc query is a legacy command that outputs plain text. Get-Service returns objects that you can filter, sort, and export to CSV or HTML. PowerShell is more flexible for scripting.

Why does my exported CSV have extra columns?

Export-Csv includes all properties of the objects by default. Use Select-Object to choose only the columns you want before exporting.

Can I export services from a remote computer?

Yes, Get-Service -ComputerName RemotePC works if you have administrative rights and the remote computer allows remote management. You may need to enable PowerShell remoting or use credentials.

Is it safe to export the registry key for services?

Exporting the registry key is safe for backup, but do not import it unless you know what you are doing. The .reg file contains binary data and is not a simple list.

Final Thoughts

Exporting the list of Windows services is straightforward once you pick the right tool. For most users, PowerShell's Get-Service | Export-Csv offers the best balance of detail and usability. Keep a copy of your service list for troubleshooting or auditing, and remember that service configurations can change after updates or software installs.