-
First of all, I am not good at scripting and I need to delete a
windows service in a batch file. -
The service name is randomly generated, I only know the display name
of the script. What can I do?
I tried basically as a trial
@echo off
set sname = sc getkeyname "Display Name"
sc delete %sname%
Not Working..
This is a general format, you must fix some details:
For example, if the service name is not displayed in the first line:
If the service name does not appear at beginning of the line:
We may help you whit more detail if you show us the info displayed by
sc getkeyname ...and what the info you want is. I hope it helps.