I am aware that under windows 7 the command-line commands...
tasklist
gets me processes (including services) currently running by it's executable namenet start
shows me all the display names of started services. (“pretty” display names, not the shorter, space-less service names)
What I would like to achieve on the command line is
- from executable name (wmiserv.exe) to the service name behind
- vice versa (o.k., this way round could also be done in the services.msc panel, looking up the services properties)
If there was a command that, say, lists it all ( executable(+incl. path maybe), service name, display name) and I can grep my to the lines I need, that would be perfect.
I lack understanding, if separate rules for svchost-Services apply.
Example: I am currently try to find the service behind C:\Windows\System32\wmiserv.exe
, which locks some files. Googling for such only gets one a wild bunch of search spam and dodgy „Download FixingTool.exe“. All I can find in the exe's Properties Dialog (assuming that it is benigm in the first plane) doesn't sound like any service name I can come up with.
I didn't find a single commando, but was able to do make a batch file for you.
Save the following code in a file 'GetServide.cmd' and run it from the command line.
To search for wmiservice.exe, the syntax would be something like: GetServide.cmd wmiservice.exe