windows - Executing SC command with a "/" in the Service name -




i want execute following command in cmd start / stop services on remote computer getting error.

c:\>sc testpc query "i/my service"  

the problem here service name having forward slash in it. how can solve this?

this has nothing sc command itself. documentation openservice:

forward-slash (/) , backslash (\) invalid service name characters.

the documentation createservice contains same restriction. service names not allowed contain forward or backward slashes.





wiki

Comments