Trying ta make a batch file to close Team Speak 3

Folstinator

Honorable
Feb 11, 2014
26
0
10,530
TASKKILL /F /IM "ts3client_win32.exe" is to my understanding the code required to shut down a running process. This code works for both World of Tanks and ActiveDossierUploader. Now why the hell isn't it working for teamspeak???

ERROR: The process :ts3client_win32.exe" with PID 4160 could not be terminated.
Reason: Access is denied

Also tried:
TASKKILL /PID 4160 /T
ERROR: The process with PID 4160 (child process of PID 2836) could not be terminated.
Reason: Access is denied.

When tried to shut down PID 2836
Error: The process "2836" not found.
 
Solution
The answer is in the error message:
Reason: Access is denied
The account under which the command is being run does not have sufficient privileges to perform the operation. It's likely that the process is owned by either "Local System" or "Network Service".
If the process is owned by "Local System" or "Network Service" then it's more than likely that you are dealing with a service, not a standard task. You can start/stop services with "Net [start | stop | pause | continue] <servicename>". However, permissions on services can be set up such that even the administrator does not have rights to start/stop/terminate.

Have you tried your command while running the console as Administrator?
 

Folstinator

Honorable
Feb 11, 2014
26
0
10,530
I went ahead and changed all the permission to full for all users but the only way I can get this to work is run as administrator. This doesn't help me as I want to add this code to an already existing batch file so I can shut down all my gaming software with one batch file. Grrrr
 

Folstinator

Honorable
Feb 11, 2014
26
0
10,530
Bottom line is- I got it to work the way I want it to other than I have to right click and run as administrator.... Not so bad I suppose :)

Did you want to see the code bubblehead?