Export List of Running and Stopped Services in Windows  

Page 1 of 2 12 LastLast
    Export List of Running and Stopped Services in Windows

    Export List of Running and Stopped Services in Windows

    How to Export List of Running and Stopped Services in Windows
    Published by Category: General Tips
    21 Dec 2023
    Designer Media Ltd

    How to Export List of Running and Stopped Services in Windows


    A service is an application type that runs in the system background without a user interface and is similar to a UNIX daemon process. Services provide core operating system features, such as Web serving, event logging, file serving, printing, cryptography, and error reporting.

    This tutorial will show you how to export a list of running and stopped services to a file in Windows 7, Windows 8, Windows 10, and Windows 11.


    Contents

    • Option One: Export List of Running and Stopped Services in Command Prompt
    • Option Two: Export List of Running and Stopped Services in PowerShell






    OPTION ONE

    Export List of Running and Stopped Services in Command Prompt


    For more Sc query command usage options, see: Sc query | Microsoft Docs


    1 Open a command prompt.

    2 Copy and paste the command you want to use below 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"


    3 You will now have a text file on your desktop with the list of all currently running and/or stopped services.






    OPTION TWO

    Export List of Running and Stopped Services in PowerShell


    For more Get-Service command usage options, see: Get-Service | Microsoft Docs


    1 Open Windows PowerShell.

    2 Copy and paste the command you want to use below into 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"


    3 You will now have a .txt or .csv file on your desktop with the list of all currently running and/or stopped services.


    That's it,
    Shawn Brink






  1. Posts : 211
    Windows10 21H2 x64 Home, Single language, build 19044.1706
       #1

    Hi @Brink,
    I ran the command sc query type= service state= all > allserviceslist.txt after July update KB4565483 (I am still on 1909) and found 5 services with a type "f0 error", some of them are controlled in Services GUI but cannot be disabled. Do you know if I can ignore these errors or should I disable them in the registry with a start 4 value?
    SERVICE_NAME: BcastDVRUserService_54310
    DISPLAY_NAME: GameDVR and Broadcast User Service_54310
    TYPE : f0 ERROR
    STATE : 1 STOPPED
    WIN32_EXIT_CODE : 0 (0x0)
    SERVICE_EXIT_CODE : 0 (0x0)
    CHECKPOINT : 0x0
    WAIT_HINT : 0x0

    SERVICE_NAME: cbdhsvc_54310
    DISPLAY_NAME: Clipboard User Service_54310
    TYPE : f0 ERROR
    STATE : 4 RUNNING
    (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
    WIN32_EXIT_CODE : 0 (0x0)
    SERVICE_EXIT_CODE : 0 (0x0)
    CHECKPOINT : 0x0
    WAIT_HINT : 0x0

    SERVICE_NAME: CDPUserSvc_54310
    DISPLAY_NAME: Connected Devices Platform User Service_54310
    TYPE : f0 ERROR
    STATE : 4 RUNNING
    (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
    WIN32_EXIT_CODE : 0 (0x0)
    SERVICE_EXIT_CODE : 0 (0x0)
    CHECKPOINT : 0x0
    WAIT_HINT : 0x0

    SERVICE_NAME: PrintWorkflowUserSvc_54310
    DISPLAY_NAME: PrintWorkflow_54310
    TYPE : f0 ERROR
    STATE : 4 RUNNING
    (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
    WIN32_EXIT_CODE : 0 (0x0)
    SERVICE_EXIT_CODE : 0 (0x0)
    CHECKPOINT : 0x0
    WAIT_HINT : 0x0

    SERVICE_NAME: WpnUserService_54310
    DISPLAY_NAME: Windows Push Notifications User Service_54310
    TYPE : f0 ERROR
    STATE : 4 RUNNING
    (STOPPABLE, NOT_PAUSABLE, ACCEPTS_PRESHUTDOWN)
    WIN32_EXIT_CODE : 0 (0x0)
    SERVICE_EXIT_CODE : 0 (0x0)
    CHECKPOINT : 0x0
    WAIT_HINT : 0x0
    Frank
      My Computer


  2. Posts : 68,894
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Hello @FrankW,

    If you're not having any issues related to these services, then it's fine to just ignore it.
      My Computers


  3. Posts : 211
    Windows10 21H2 x64 Home, Single language, build 19044.1706
       #3

    Brink said:
    Hello @FrankW,

    If you're not having any issues related to these services, then it's fine to just ignore it.
    I cannot find any User Service_54310 in the registry HKLM\System\CurrentControlSet\Services only 53a65 so cannot disable anyhow, I will just forget about it.
    Thanks Shawn
      My Computer


  4. Posts : 68,894
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    FrankW said:
    I cannot find any User Service_54310 in the registry HKLM\System\CurrentControlSet\Services only 53a65 so cannot disable anyhow, I will just forget about it.
    Thanks Shawn
    You can ignore the User Service_54310 part after the service name. This part is just generic.
      My Computers


  5. Posts : 211
    Windows10 21H2 x64 Home, Single language, build 19044.1706
       #5

    Brink said:
    You can ignore the User Service_54310 part after the service name. This part is just generic.
    Hi Shawn,
    I don't have many services (like Application Management) that you show in your tutorial 2016 (Restore Default Services....), is that a listing also for 1909 Home x64 or is that only for W10 professional versions with GPO? If you have an updated (Services) list for 1909 Home users that would be great as it seems that Services are deleted by the system (maybe corrupted and than deleted?)
    Frank
      My Computer


  6. Posts : 68,894
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #6

    FrankW said:
    Hi Shawn,
    I don't have many services (like Application Management) that you show in your tutorial 2016 (Restore Default Services....), is that a listing also for 1909 Home x64 or is that only for W10 professional versions with GPO? If you have an updated (Services) list for 1909 Home users that would be great as it seems that Services are deleted by the system (maybe corrupted and than deleted?)
    Frank
    Hello Frank,

    There are some services that may not be available in Home for features not available in Home, but I will go through the list tomorrow for any needed updates. I'm sure there will be some that may have been removed in Windows as well.

    Restore Default Services in Windows 10
      My Computers


  7. Posts : 211
    Windows10 21H2 x64 Home, Single language, build 19044.1706
       #7

    @Brink
    Thanks Shawn, I have Intel and Realtek apps that "drive" me nuts as some of them are 100% controlled by windows, nothing changes when I disable/enable those 3rd party apps. Fiddling with Services causes some services to disappear in W10, I noticed that in the Aniversary versions and now again in 1909, possibly corrupted registry keys that are than removed?
    Frank
      My Computer


  8. Posts : 68,894
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #8

    FrankW said:
    @Brink
    Thanks Shawn, I have Intel and Realtek apps that "drive" me nuts as some of them are 100% controlled by windows, nothing changes when I disable/enable those 3rd party apps. Fiddling with Services causes some services to disappear in W10, I noticed that in the Aniversary versions and now again in 1909, possibly corrupted registry keys that are than removed?
    Frank
    Tutorial below now updated.

    Restore Default Services in Windows 10
      My Computers


  9. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #9

    Hello @Brink,

    Just to add to your excellent Tutorial.

    I have a Batch Script that I setup a long time ago that outputs Services etc. As I have OCD, I always setup these sorts of things in a certain structure, like having the most important output data on the left-hand side. Therefore, I thought I would SHARE what I use [ I have obviously NOT included the output path ] . . .

    Services - Running and Stopped.

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

    Services - Running and Stopped [ Sorted by Name ].

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

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

    Services - Running and Stopped [ Sorted by StartType, Name ].

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

    Services - Running and Stopped [ Sorted by StartType, Status, Name ].

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

    I hope this is useful.
      My Computer


 

Tutorial Categories

Export List of Running and Stopped Services in Windows Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:46.
Find Us




Windows 10 Forums