I would like to get a text dump of the screen you see when running services.msc (except the Description column). This is so I can run a diff after installing different software that adds services to this screen.

Is this possible?

If it's helpful I have access to Powershell but don't know how to retrieve this type of information from it.

link|improve this question

feedback

2 Answers

up vote 3 down vote accepted

In the Services window, Action > Export... menu can give you the list as a .txt or .csv file. It gives you the description column as well, but you can easily delete it using a program like Excel.

You can also do this from Powershell.

Get-Service | Export-Csv -path "C:\services.csv"

Besides, you can filter the list. For example, you can get only the started services by executing the following command:

Get-Service | where {$_.Status -eq "Running"} | Export-Csv -path "C:\services.csv"
link|improve this answer
feedback

Without using powershell, this lists running services:

 sc query > running_services.txt

This lists all services, running or not:

 sc query state= all > all_services.txt
link|improve this answer
PowerShell works better in this case because its output can be easily customised. But it's good to know there are other options, thanks! – Alex Angas Jul 14 '11 at 22:50
PowerShell is nice, but not always on every machine. – Warren P Aug 3 '11 at 15:33
Apparently WMI can do this too. – Warren P Nov 1 '11 at 17:23
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.