How to Export Windows 11 Services in 3 Steps

This article explains how to list and export services running or stopped in Windows 11.

What is a Windows Service?

In Windows, a service is a program that runs in the background. It provides functionality to other programs and the operating system. Services usually start when your computer boots up. They run continuously until you shut down your computer.

You can enable or disable services so that they do not automatically start up when the computer boots.

Why Export Services?

With the command line or PowerShell console, you can list services. You can see running and stopped services. You can export them into a text file.

Learning how to list and export services in Windows can be useful for several reasons:

  • It can help you troubleshoot issues related to a service not running correctly.
  • It can help you determine which services consume too many system resources.
  • If you are an IT professional or system administrator, you can manage and monitor services on multiple computers.
  • By exporting the list to a text file, you can keep a record of the current state of services on your system.
  • This is helpful for documentation and reporting purposes.

List All Running and Stopped Services

Here’s how to do that.

First, open Windows Terminal and select the PowerShell tab.

List All Services (Running and Stopped)

Type the command below to list all running and stopped services on the command console.

Get-Service | Select StartType, Status, Name, DisplayName | Format-Table -AutoSize

List Only Running Services

To list only services that are running, run the command below.

Get-Service | Select StartType, Status, Name, DisplayName | Where-Object {$_.Status -eq 'Running'} | Format-Table -AutoSize

List Only Stopped Services

To list only services that are stopped, run the command below.

Get-Service | Select StartType, Status, Name, DisplayName | Where-Object {$_.Status -eq 'Stopped'} | Format-Table -AutoSize

Export Services to a File

Use the steps below to export the services to a TXT or CSV file.

Export to TXT File

To export the list to a TXT file, append the line below.

| Out-File -filepath "$Env:userprofile\Downloads\Services.txt"

Example:

Get-Service | Select StartType, Status, Name, DisplayName | Format-Table -AutoSize | Out-File -filepath "$Env:userprofile\Downloads\Services.txt"

Export to a CSV File

Append the line below:

| Export-Csv -path "$Env:userprofile\Desktop\Services.csv"

Example:

Get-Service | Select StartType, Status, Name, DisplayName | Export-Csv -path "$Env:userprofile\Downloads\Services.csv"

List and Export Services with Command Prompt

If you prefer the Command Prompt with Windows Terminal, use the command below.

First, open Windows Terminal, then select the Command Prompt tab.

On the Command Prompt console, type the command below.

List All Services (Running and Stopped)

PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Format-Table -AutoSize

List Only Running Services

PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Where-Object {$_.Status -eq 'Running'} ^| Format-Table -AutoSize

List Only Stopped Services

PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Where-Object {$_.Status -eq 'Stopped'} ^| Format-Table -AutoSize

Export to a TXT File

If you want to export the list to a TXT file, append the command with a line below.

^| Out-File -filepath "$Env:userprofile\Desktop\Services.txt"

Example:

PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Format-Table -AutoSize ^| Out-File -filepath "$Env:userprofile\Downloads\Services.txt"

Export to a CSV File

To export to a CSV file, append the line below.

^| Export-Csv -path "$Env:userprofile\Downloads\Services.csv"

Example:

PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Where-Object {$_.Status -eq 'Running'} ^| Format-Table -AutoSize ^| Export-Csv -path "$Env:userprofile\Downloads\Services.csv"

That should do it!

Summary

Listing and exporting services in Windows 11 is essential for troubleshooting issues and managing services efficiently.

The ability to list running and stopped services provides valuable insights into system resource usage and functionality.

Exporting the service list to a TXT or CSV file enables documentation, reporting, and offline analysis of service states.

Whether you prefer using Windows Terminal with PowerShell or Command Prompt, the provided commands and steps make the process straightforward and accessible.

Frequently Asked Questions


How do I list only running services in Windows 11?

Open Windows Terminal with PowerShell and execute: Get-Service | Select StartType, Status, Name, DisplayName | Where-Object {$_.Status -eq 'Running'} | Format-Table -AutoSize. This command filters and displays only the services that are currently running on your system.

What is the difference between exporting services to TXT vs CSV format?

Exporting to TXT creates a formatted text file suitable for documentation and quick viewing, while CSV format creates a spreadsheet-compatible file that can be opened and sorted in Excel or other applications. CSV format is better for analysis and comparison of service data across multiple systems.

Why would I need to export Windows services?

Exporting services is useful for troubleshooting issues, identifying resource-heavy services, maintaining IT documentation, and comparing service configurations across multiple computers. System administrators often export service lists for monitoring, auditing, and backup purposes.

Can I export services using Command Prompt instead of PowerShell?

Yes, you can use Command Prompt in Windows Terminal for listing and exporting services. While PowerShell offers more advanced filtering and export options, Command Prompt provides basic service listing functionality with commands like 'sc query' for Windows service management.

Categories:

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *