MASIGNCLEAN104

How to export Windows Services list using command line

iklan banner

You tin purpose the Command Prompt or the Get-Service PowerShell cmdlet t0 generate a listing of Running or Stopped Windows Services. This postal service volition exhibit yous how yous tin generate a listing of Windows Services running on your Windows 10/8/7 computer.

How to export Windows Services list

Export Windows Services listing using ascendance business inward CMD

Open an elevated Command Prompt, type the next together with hitting Enter:

sc enquiry type= service > "%userprofile%\Desktop\ServicesList.txt"

This volition salvage the listing every bit a text file on your Desktop.

Use PowerShell to generate listing of Windows Services

The Get-Service cmdlet is designed to recall data well-nigh the services installed on your computer. Using the Get-Service PowerShell cmdlet, yous tin generate a listing of Windows Services running on your Windows 10/8/7 computer.

You tin purpose the Command Prompt or the Get How to export Windows Services listing using ascendance line

Open an elevated PowerShell console, type Get-Service together with hitting Enter. You volition run across a listing of all the Services installed on your Windows system.

You tin every bit good filter out the results using the filtering capabilities of Windows PowerShell. Make purpose of the parameters to accomplish this. You tin generate a listing of Running Services every bit good every bit Stopped Services. You tin every bit good form them past times mention using the Sort-Object cmdlet. You tin become a stride forrad together with fifty-fifty output the listing to GridView.

For instance, yous tin purpose the Get-Service cmdlet, filter the condition on the discussion Running, together with thence output to the GridView, past times using the next command:

Get-Service | Where Status -eq "Running" | Out-GridView

This volition generate a listing of the Running Services, together with about other window volition opened upwards to exhibit the result.

To recall data well-nigh Stopped Services on a remote computer, together with output it to GridView, purpose -ComputerName parameter, every bit shown below:

Get-Service -ComputerName RemoteComputerName | Where Status -eq "Stopped" | Out-GridView

To export the listing of Windows Services, purpose the next command:

Get-Service | Where-Object {$_.Status -eq "Running"} | Out-File -filepath "$Env:userprofile\Desktop\ServicesList.txt"

This volition salvage the listing every bit a text file on your Desktop.

These were simply iii examples. Read to a greater extent than well-nigh Get-Service on TechNet.

Now accept a hold back at how to Export together with Backup Device Drivers inward Windows 10 using PowerShell.

Using Windows PowerShell, yous tin also update Windows Defender definitions, list Drives, uninstall Universal apps, find scheduled tasks queued status, create System Image, create desktop shortcut to opened upwards Windows Store apps, get an Installed Driver list, export Drivers together with more!


Source: https://www.thewindowsclub.com/
Share This :