How to kill a Windows service with a space in the name using taskkill in a batch file

I am trying to write a batch file that kills a Windows sound service using the following

taskkill / F / FI "Windows Audio eq Services"

however, I cannot get taskkill to handle a space in the service name. Any ideas?

thank

+3
source share
1 answer

Instead of using taskkill, why can't you use net stop:

net stop "Windows Audio"

net stop will allow the service to cease grace.

+5
source

Source: https://habr.com/ru/post/1761713/


All Articles