I’m trying to find the install location of the application on a windows server and the properties are not working correctly when I try to use services for this information.
I have tried this syntax below and it works for some services, but not all for some reason.
(image paths of it) of services whose (service name of it starts with “BES”)
If does find the BES stuff, but if I look for TSM it does not work on all servers. Out of 100 servers only 5 servers actually show it.
If I use this to list ALL services it does list TSM there.
running services
So why on some servers would this syntax work, but on most it not work?
q: (Display name of it, image paths of it) of running services whose (Display name of it starts with "TSM")
T: 0.353 ms
q: (Display name of it) of running services whose (Display name of it starts with "TSM")
A: TSM Central Scheduler Service
A: TSM Journal Service
T: 0.177 ms
q: (image path of it) of running services whose (Display name of it starts with "TSM")
E: Singular expression refers to nonexistent object.
q: running services whose (Service name of it starts with "TSM")
A: "TSM Central Scheduler Service" "TSM Central Scheduler Service" "Running"
A: "TSM Journal Service" "TSM Journal Service" "Running"
T: 126.436 ms
I bet the image path is not properly set for this service… You might look in the registry at “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services” and see if it has an image path (and if it is valid).
q: value "ImagePath" of key "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\TSM Central Scheduler Service" of registry
A: "C:\Program Files\tivoli\tsm\baclient\dsmcsvc.exe"
T: 380.548 ms