How to export a list of running and stopped services in Windows
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

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 should read it
- Secedit command: export in Windows
- Offer PDF Export Kit - a PDF converter to other formats for $ 49, which is free
- Instructions on how to export contacts from Gmail
- How to set up and use the Quick Export feature in Photoshop
- How to export emails from Mail to Note on Mac
- How to export printing images in Photoshop
- Steps to export and download Google Maps data
- Steps to export Microsoft Access data to Word documents
May be interested
- How to restart the Windows Explorer.exe processwhen windows starts and the user logs on, the operating system launches the explorer.exe process, displaying the windows user environment like the desktop, the taskbar, and the start menu.
- How to set up Windows Deployment Services on Windows Server 2016wds (windows deployment services) is a server role, providing a simple and secure means to remotely deploy the microsoft operating system to computers over the network. this tutorial introduces how to set up wds server 2016.
- How to install fonts on Windows (Win7 - Win8 - Win10)instructions on how to install fonts on win 7 - win8 and win 10 quickly, accompanied by how to remove the font and set the font to the default windows.
- How to screenshot Dell laptop for all Windows generations from XP to 10how to take a screenshot of dell laptop is the fastest and most compact? the 3 suggestions below will surely only take you a few seconds to get a screenshot right away.
- Keyboard shortcuts for minimizing windowskeyboard shortcuts are used so that you can perform functions in windows more conveniently and quickly because pressing the keyboard shortcut with a fluent person is faster than using the mouse cursor to click.
- What is Safe Mode? When to use Safe Modeif you have been using windows operating system, at least you have heard about safe mode. but do you know anything about safe mode? what it is used for and how it works on windows.