Een service is een type applicatie dat op de systeemachtergrond draait zonder gebruikersinterface, vergelijkbaar met een UNIX-daemonproces. Services bieden kernfuncties van het besturingssysteem, zoals gebeurtenisregistratie, afdrukken, foutrapportage, enz.
In deze handleiding wordt uitgelegd hoe u een lijst met actieve en gestopte services exporteert naar een bestand in Windows 7, Windows 8 en Windows 10.
Exporteer een lijst met actieve en gestopte services in de opdrachtprompt

Exporteer een lijst met actieve en gestopte services in de opdrachtprompt
1. Open de opdrachtprompt .
2. Kopieer en plak de onderstaande opdracht die u wilt gebruiken in de opdrachtprompt en druk op Enter.
(Exporteer alle actieve en gestopte services)
sc query type= service state= all > "%UserProfile%\Desktop\All_Services.txt"
(Exporteer alle actieve services)
sc query type= service > "%UserProfile%\Desktop\Running_Services.txt"
(Exporteer alle gestopte services)
sc query type= service state= inactive > "%UserProfile%\Desktop\Stopped_Services.txt"
3. Er staat nu een tekstbestand op uw bureaublad met daarin een lijst met alle services die momenteel actief en/of gestopt zijn.
Exporteer een lijst met actieve en gestopte services in PowerShell
![Hoe u een lijst met actieve en gestopte services in Windows kunt exporteren Hoe u een lijst met actieve en gestopte services in Windows kunt exporteren]()
Exporteer een lijst met actieve en gestopte services in PowerShell
1. Open Windows PowerShell .
2. Kopieer en plak de onderstaande opdracht die u wilt gebruiken in PowerShell en druk op Enter.
(Exporteer alle actieve en gestopte services naar .txt-bestand)
Get-Service | Format-Table -AutoSize | Out-File -f
(Exporteer alle actieve en gestopte services naar .csv-bestand)
Get-Service | Export-Csv -path "$Env:userprofile\Desktop\All_Services.csv"
Of
(Exporteer alle actieve services naar .txt-bestand)
Get-Service | Where-Object {$_.Status -eq "Running"} | Format-Table -AutoSize | Out-File -filepath "$Env:userprofile\Desktop\Running_Services.txt"
(Exporteer alle actieve services naar .csv-bestand)
Get-Service | Where-Object {$_.Status -eq "Running"} | Export-Csv -path "$Env:userprofile\Desktop\Running_Services.csv"
Of
(Exporteer alle gestopte services naar .txt-bestand)
Get-Service | Where-Object {$_.Status -eq "Stopped"} | Format-Table -AutoSize | Out-File -filepath "$Env:userprofile\Desktop\Stopped_Services.txt"
(Exporteer alle gestopte services naar .csv-bestand)
Get-Service | Where-Object {$_.Status -eq "Stopped"} | Export-Csv -path "$Env:userprofile\Desktop\Stopped_Services.csv"
3. Nu. Op uw bureaublad staat een .txt- of .csv-bestand met daarin een lijst met alle services die momenteel actief en/of gestopt zijn.