I want to list all the current running services and output it to a .csv file. Does anyone know how to do this?
|
A bit of good old shell script:
|
|||
|
|
Might I be evil and suggest the Cygwin variant:
|
|||
|
|
|
most basic way would to do this would be; net start > services.csv Sysinternals has a lot of tools which will provider more granular detailed information from within your processes. Such as PsService , the same function piping the result to a file will export as needed "> filename.extension" |
|||||||||||
|
|
I have a simpler command than the above examples. WMI is installed by default on Windows XP or Windows 2k3 and above, although to use the wmic.exe program, the machine may need to initialize before local operation. From a command prompt issue the command:
or, for a machine on the network:
Redirect the output to a file of your choice. Changing /format:csv to /format:list makes a human readable output. One of my servers gives this for its HP Insight service:
Most likely, you have no interest in many of these attributes and values. Assuming you only want Name, Caption and Pathname for each running process, you might issue the following command specifying only these attributes:
Rob |
|||
|
|