itbabe
asked on
Vbscript : I need to kill a service using vbs
please help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Does it really need to be in vbs? Can't you just do it in a dos box
net stop servicename
To start it
net start servicename
net stop servicename
To start it
net start servicename
Click Start -> Run -> Cmd.exe -> OK
WMIC /NODE:"Remote_Machine_Name
This will stope and remove a service.
::stop, disable and remove
@Echo Off
setlocal
set service=dwmrcs
FOR /F %%c IN (C:\computers.txt) Do (
Echo stop service %%c
sc \\%%c stop %service%
sc \\%%c config %service% start= disabled
sc \\%%c delete %service%
)
Save as a bat file and have all the computernames in the txt file
Set the service name
set service=dwmrcs