you must kill child process too if any spawned to kill successfully your process

taskkill /IM "process_name" /T /F

/T = kills child process

/F = forceful termination of your process
Answer from aaa on Stack Overflow
Discussions

Kill a process with access denied ?

Try using PSEXEC to launch CMD as SYSTEM then taskkill the pid.

More on reddit.com
🌐 r/sysadmin
14
12
August 19, 2019
Fix: Unable to terminate process ‘Access is denied’
This problem occurs with users who try to terminate a process from the Task Manager. Once you select the process and click the End Task button, you will More on appuals.com
🌐 appuals.com
15
February 1, 2018
Windows 10 Can’t kill process access denied what is waynotana and why is there nothing on google about it?!!?
I'd upload a copy of this file to VirusTotal. It might be something brand new. More on reddit.com
🌐 r/windows
62
250
January 4, 2021
Fix: Unable to terminate process 'Access is denied'
Originally published at: Fix: Unable to terminate process 'Access is denied' This problem happens with users who tries to terminate a process from the Task Manager. Once you select the process and click the End Task button, you will see an error message telling you that the operation could ... More on community.appuals.com
🌐 community.appuals.com
0
0
April 26, 2024
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 184056 › kill-other-users-process-in-task-manager-access-de
Kill other users process in Task Manager "Access Denied" Server 2019 - Microsoft Q&A
December 2, 2020 - Could the domain admin kill processes like notepad, calculate of the standard users? Please use domain admin account to locally log onto the server and then run command prompt as administrator. Input command"taskkill /f /PID processID" to try again.
🌐
Windows 10 Forums
tenforums.com › general-support › 206245-taskill-via-batch-issue.html
Taskill via Batch Issue Solved - Windows 10 Forums
Until recently a batch file containing taskkill commands worked w/o issue. Now one of the commands fails (ERROR ... access denied) and the only thing different now from then is the recent windows update. I do know it does work if I open a command window and type the taskklill command there.
🌐
Appuals
appuals.com › home › microsoft windows › windows troubleshooting
Fix: Unable to terminate process 'Access is denied'
February 1, 2018 - Right-click Command Prompt from the search results and select Run as administrator. Type taskkill /im process-name /f and press Enter. You can get the process name by right-clicking the process you want to kill (from the Task Manager) and selecting ...
Find elsewhere
🌐
MiniTool System Booster
systembooster.minitool.com › home › boost pc › how to fix unable to terminate process access is denied?
Unable to Terminate Process Access Is Denied? Fix It Now!
July 22, 2024 - WMIC (Windows Management ... process access is denied Windows 10” message. Follow the guide to do that: 1. Type cmd in the Search box and choose Run as administrator. 2. Run the following command and replace ProcessName with the name of the process you want to terminate and press Enter. wmic process where name=’processname.exe’ delete · You can use the taskkill command in ...
🌐
iSumsoft
isumsoft.com › home › task manager access denied, unable to terminate process [soloved]
Task Manager Access Denied, Unable to Terminate Process [SOLOVED]
September 8, 2020 - Well, we’ve shown 3 ways to force-quit a program, and right here we’re going to show you how to fix “Access is denied” error. First, you can execute the TASKKILL command to kill the task.
🌐
Audministrator
audministrator.wordpress.com › 2018 › 05 › 17 › windows-taskkill-error-access-denied
Windows – Taskkill Error Access denied | audministrator
May 17, 2018 - Even if you run it with Admin privileges Example : Taskkill /IM notepad.exe /T /F SOLUTION : Just use the WMIC cmdline tool instead wmic process where name='notepad.exe' delete Enjoy !
🌐
Eleven Forum
elevenforum.com › windows support forums › general support
Access Denied when trying to kill stuck processes | Windows 11 Forum
February 2, 2024 - WD Blue SA510 2.5 1000GB SSD as ... You should not need any tools. Create a shortcut with target C:\Windows\System32\cmd.exe /c taskkill /im explorer.exe /f & start explorer.exe Name it Kill Explorer (or whatever) Right click on the shortcut....
🌐
MiniTool
minitool.com › home › news › 5 fixes to unable to terminate process access is denied
Quick Fixes: Unable to Terminate Process Access Is Denied
November 29, 2024 - If you keep receiving the “unable to terminate process access is denied” error message, your computer may have been attacked by a virus. In this situation, you need to use antivirus software such as Windows ...
🌐
Reddit
reddit.com › r/windows › windows 10 can’t kill process access denied what is waynotana and why is there nothing on google about it?!!?
Windows 10 Can’t kill process access denied what is waynotana and why is there nothing on google about it?!!? : r/windows
January 4, 2021 - Check your Services and see if anything is out of the ordinary. Try to boot into Safe Mode and see if the process still runs. You can also download and run AutoRuns and see if you can disable it from from at Start Up. Dragonborne2020 · • 5y ago · I would run Malwarebytes.
🌐
SmartTechWays
smarttechways.com › home › taskkill error access denied
Taskkill Error Access denied - SmartTechWays - Innovative Solutions for Smart Businesses
January 8, 2026 - C:\Users>taskkill /F /PID 10124 ERROR: The process with PID 10124 could not be terminated. Reason: Access is denied. C:\Windows\system32>TASKKILL /F /FI "USERNAME eq NT AUTHORITY\SYSTEM" /PID 10124 SUCCESS: The process with PID 10124 has been terminated.
🌐
The Windows Club
thewindowsclub.com › the windows club › unable to terminate process, access is denied in windows 11
Unable to terminate process, Access is denied in Windows 11
Then, open Command Prompt as an administrator and type taskkill /PID <PID> /F replacing “<PID>” with the actual process ID. This command will terminate the process forcefully.
Published   June 18, 2025
🌐
Appuals Community
community.appuals.com › windows troubleshooting
Fix: Unable to terminate process 'Access is denied' - Windows Troubleshooting - Appuals Community
April 26, 2024 - Originally published at: Fix: Unable to terminate process 'Access is denied' This problem happens with users who tries to terminate a process from the Task Manager. Once you select the process and click the End Task …
🌐
EaseUS
easeus.com › computer instruction › can't end task access denied (cuauses & solutions)👍
Can't End Task Access Denied (Cuauses & Solutions)👍
July 10, 2025 - Here are some of the frequently asked questions about Can't End Task and Access Denied errors: It's likely that the app the user is trying to end in Task Manager is protected by Windows services.
🌐
Stack Overflow
stackoverflow.com › questions › 50139719 › access-denied-using-taskkill-from-python-script
windows 10 - Access Denied using taskkill from python script - Stack Overflow
If you decide to use PyWin32, you may as well skip using os.popen or subprocess.Popen(..., shell=True) to instead directly call result = shell.ShellExecuteEx(lpVerb='runas', lpFile='osk.exe', fMask=shellcon.SEE_MASK_NOCLOSEPROCESS). With this you'll already have a handle with the required access to call win32api.TerminateProcess(result['hProcess'], 1).
🌐
MS.Codes
ms.codes › blogs › task-manager › can-t-end-process-in-task-manager-access-denied
Can’t End Process In Task Manager Access Denied
February 29, 2024 - Firstly, make sure you have administrative privileges and try running Task Manager as an administrator. If that doesn't work, check if the process is being run by another user or system service.