cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
swraper
Level 3

Does 'ServiceExistsService' even work?

I am using:
sServiceName = "My Service";
bExists = ServiceExistsService(sServiceName);

and this always returns FALSE, even when the NT service 'My Service' exists. What gives?
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

As a sanity check, are you using the internal service name (which is what the service functions want) or the display name? If you look at a service's details, you'll see both:
0 Kudos