How to export a list of running and stopped services in Windows
This tutorial will show you how to export a list of running and stopped services to a file in Windows 7, Windows 8 and Windows 10.
Service is a type of application that runs in the background without a user interface, similar to the UNIX daemon process. Services provide core operating system features, such as event logging, printing, error reporting, and so on.
This tutorial will show you how to export a list of running and stopped services to a file in Windows 7, Windows 8 and Windows 10.
Export the list of running and stopped services in the Command Prompt
Export the list of running and stopped services in the Command Prompt
Step 1. Open Command Prompt.
Step 2. Copy and paste the command you want to use below into the Command Prompt and press Enter.
(Export all running and stopped services)
sc query type= service state= all > "%UserProfile%DesktopAll_Services.txt"
(Export all running services)
sc query type= service > "%UserProfile%DesktopRunning_Services.txt"
(Export all stopped services)
sc query type= service state= inactive > "%UserProfile%DesktopStopped_Services.txt"
Step 3. You should now have a text file on your desktop, containing a list of all currently running and / or stopped services.
Export a list of running and stopped services in PowerShell
Step 1. Open Windows PowerShell.
Step 2. Copy and paste the command you want to use below into PowerShell and press Enter.
(Export all running and stopped services to .txt file)
Get-Service | Format-Table -AutoSize | Out-File -f
(Export all running and stopped services to .csv file)
Get-Service | Export-Csv -path "$Env:userprofileDesktopAll_Services.csv"
Or
(Export all running services to .txt file)
Get-Service | Where-Object {$_.Status -eq "Running"} | Format-Table -AutoSize | Out-File -filepath "$Env:userprofileDesktopRunning_Services.txt"
(Export all running services to .csv file)
Get-Service | Where-Object {$_.Status -eq "Running"} | Export-Csv -path "$Env:userprofileDesktopRunning_Services.csv"
Or
(Export all stopped services to a .txt file)
Get-Service | Where-Object {$_.Status -eq "Stopped"} | Format-Table -AutoSize | Out-File -filepath "$Env:userprofileDesktopStopped_Services.txt"
(Export all stopped services to a .csv file)
Get-Service | Where-Object {$_.Status -eq "Stopped"} | Export-Csv -path "$Env:userprofileDesktopStopped_Services.csv"
Step 3. Now. You will have a .txt or .csv file on the desktop, containing a list of all currently running and / or stopped services.
You've just finished reading the article "How to export a list of running and stopped services in Windows" edited by the TipsMake team. You can save how-to-export-a-list-of-running-and-stopped-services-in-windows.pdf to your computer here to read later or print it out. We hope this article has provided you with many useful tech tips and tricks. You can search for similar articles on tips and guides. Thank you for reading and for following us regularly.
- How to save a list of running processes to a file in Windows
- Google Play Services Has Stopped steps to fix Unfortunately errors
- The reg export command in Windows
- 7 ways to open the Services application in Windows 11
- Steps to fix 'Shell Infrastructure Host Has Stopped Working' error in Windows
- How to fix the problem of too many background processes running on Windows PC