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 PromptStep 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
- Discover the new Export List feature of Exchange Server 2007 Service Pack 1
- The reg export command in Windows
- 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
- How to Export an iMovie Video in HD
- How to export photos, save photos in Photoshop
Maybe you are interested
How to share videos on TubeMate in 3 steps Learn about Personal Area Network (PAN) 2 ways to delete data, duplicate content in Excel We may be able to see the 'second moon' in the sky with the naked eye next May This is why you will choose AMD's latest 3rd generation Ryzen CPU instead of Intel chips Rushing to buy laptop insulation equipment for 'baked leather syndrome'