I have this third-party service installed which will not be stopped using WMI, services, net stop, and the vendor is saying that it is a security feature and to stop it through the command line using
This works fine, but what if I need to stop it on more then one machine, I have 300 machines!!! I found this script that says that it can execute this command by opening a shell but is not working on my pc?
set objShell= CreateObject("WScript.Shell")
strCommand= "dir /s C:\ ""C:\Program Files\DeviceLock\DLService.exe -e"""
Is there something else that I should use to execute this particular command "dlservice.exe -e" to 300 computers using a .txt file? Just to clarify the dlservice.exe file is in the System32 folder so that is why I only type C:\dlservice.exe -e
I also need to restart it after I have confirmed that the service was stopped completely; I want a confirmation also.