This tutorial will show you how to export a list of all running and/or stopped services in Windows 10 and Windows 11.
Services are an application type that runs in the system background without a user interface. Services provide core operating system features (such as printing, networking, remote access, File Explorer, Windows Search, updates, etc.) and apps to operate as intended.
The exported list will show you the StartType (ex: Automatic, Manual, Disabled), Status (stopped or running), Name, and DisplayName of each service.
You can export the list of running and stopped services to either a TXT file, CSV file, or show in the terminal window.
Contents
- Option One: Export List of Running and Stopped Services in Command Prompt
- Option Two: Export List of Running and Stopped Services in PowerShell
EXAMPLE: Export list of running and stopped services in Windows PowerShell window
1 Open Windows Terminal, and select Command Prompt.
2 Copy and paste the command below you want to use into the command prompt, and press Enter.
(List all running and stopped services in command prompt)
PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName^| Format-Table -AutoSize
(List all running and stopped services to .txt file)
PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Format-Table -AutoSize ^| Out-File -filepath "$Env:userprofile\Desktop\All_Services.txt"
(List all running and stopped services to .csv file)
PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Export-Csv -path "$Env:userprofile\Desktop\All_Services.csv"
OR
(List all running services in command prompt)
PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Where-Object {$_.Status -eq 'Running'} ^| Format-Table -AutoSize
(List all running services to .txt file)
PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Where-Object {$_.Status -eq 'Running'} ^| Format-Table -AutoSize ^| Out-File -filepath "$Env:userprofile\Desktop\Running_Services.txt"
(List all running services to .csv file)
PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Where-Object {$_.Status -eq 'Running'} ^| Export-Csv -path "$Env:userprofile\Desktop\Running_Services.csv"
OR
(List all stopped services in command prompt)
PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Where-Object {$_.Status -eq 'Stopped'} ^| Format-Table -AutoSize
(List all stopped services to .txt file)
PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Where-Object {$_.Status -eq 'Stopped'} ^| Format-Table -AutoSize ^| Out-File -filepath "$Env:userprofile\Desktop\Stopped_Services.txt"
(List all stopped services to .csv file)
PowerShell Get-Service ^| Select StartType, Status, Name, DisplayName ^| Where-Object {$_.Status -eq 'Stopped'} ^| Export-Csv -path "$Env:userprofile\Desktop\Stopped_Services.csv"
1 Open Windows Terminal, and select Windows PowerShell.
2 Copy and paste the command below you want to use into Windows PowerShell, and press Enter.
(List all running and stopped services in PowerShell)
Get-Service | Select StartType, Status, Name, DisplayName | Format-Table -AutoSize
(List all running and stopped services to .txt file)
Get-Service | Select StartType, Status, Name, DisplayName | Format-Table -AutoSize | Out-File -filepath "$Env:userprofile\Desktop\All_Services.txt"
(List all running and stopped services to .csv file)
Get-Service | Select StartType, Status, Name, DisplayName | Export-Csv -path "$Env:userprofile\Desktop\All_Services.csv"
OR
(List all running services in PowerShell)
Get-Service | Select StartType, Status, Name, DisplayName | Where-Object {$_.Status -eq 'Running'} | Format-Table -AutoSize
(List all running services to .txt file)
Get-Service | Select StartType, Status, Name, DisplayName | Where-Object {$_.Status -eq 'Running'} | Format-Table -AutoSize | Out-File -filepath "$Env:userprofile\Desktop\Running_Services.txt"
(List all running services to .csv file)
Get-Service | Select StartType, Status, Name, DisplayName | Where-Object {$_.Status -eq 'Running'} | Export-Csv -path "$Env:userprofile\Desktop\Running_Services.csv"
OR
(List all stopped services in PowerShell)
Get-Service | Select StartType, Status, Name, DisplayName | Where-Object {$_.Status -eq 'Stopped'} | Format-Table -AutoSize
(List all stopped services to .txt file)
Get-Service | Select StartType, Status, Name, DisplayName | Where-Object {$_.Status -eq 'Stopped'} | Format-Table -AutoSize | Out-File -filepath "$Env:userprofile\Desktop\Stopped_Services.txt"
(List all stopped services to .csv file)
Get-Service | Select StartType, Status, Name, DisplayName | Where-Object {$_.Status -eq 'Stopped'} | Export-Csv -path "$Env:userprofile\Desktop\Stopped_Services.csv"
That's it,
Shawn Brink
Attachments
Last edited: