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 see an error message indicating that the operation could not be completed. Most users who encounter this issue experience problems running games or other applications. These users cannot run the applications either because they receive the error “Program is already open” or because they see multiple instances of the same app in the Task Manager. This issue is not specific to these cases, though; you might see this message while trying to terminate a hung app or an unwanted app. In all these cases, this Access Denied error will appear when you try to eliminate the process.

The reason behind this issue isn’t clear, but the most likely contenders are either a Windows (Windows Update) bug or corrupted application files. Windows updates are known to introduce weird bugs, so this might be caused by a Windows bug. In this scenario, there isn’t much that you can do. However, if the problem is specific to a third-party application, then the issue might be a corrupted file. These cases are usually resolved after a reinstall.

Method 1: Use Command Prompt

The easiest solution is to use the command prompt to terminate a process. There are certain commands that can be used to do the same thing, i.e., terminate a process. Here are the steps for stopping processes:

  1. Press the Windows key once.
  2. Type command prompt in the Start Search box.
  3. Right-click Command Prompt from the search results and select Run as administrator.

  1. 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 Details. This will open the Details tab with your process already selected. Simply look at the name of the process and type it in the process-name.

You can run this command for all types of processes and see if this works for you.

Method 2: Enter Safe Mode and Reinstall

If the problem occurs when you try to terminate a third-party application process, try to uninstall and reinstall the application to see if that resolves the issue.

Here are the steps for getting into Safe Mode and then reinstalling the application:

Note: Make sure you have the application installer downloaded on the system before getting into Safe Mode.

  1. Hold the Windows key and press R.
  2. Type msconfig and press Enter.

  1. Select the Boot tab.

  1. Check the option Safe Boot in the Boot options section.
  2. Select the option Minimal under the Safe Boot option.
  3. Click Ok.

  1. Windows will ask you to restart. Click Restart.
  2. Once the system restarts, you will be in Safe Mode. Uninstall the problematic application. Hold the Windows key and press R.
  3. Type appwiz.cpl and press Enter.

  1. Locate the application and select it.
  2. Click Uninstall and follow the on-screen instructions.
  3. Now, reinstall the application by running its installer.
  4. Once the application is installed, you need to turn off the Safe Mode option.
  5. Hold the Windows key and press R.
  6. Type msconfig and press Enter.

  1. Select the Boot tab.

  1. Uncheck the option Safe Boot in the Boot options section.
  2. Click Ok.

  1. Windows will ask you to restart. Click Restart.

Your computer should start in normal mode. Check if the problem is resolved or not.

Method 3: Use Process Hacker

Process Hacker is a free tool designed to monitor system resources, debug software, and detect malware. However, we are only concerned with its ability to monitor the running applications. Process Hacker is considered an alternative to Task Manager and Process Explorer. This means that it can terminate processes just like Task Manager.

Using Process Hacker to terminate processes has worked for many users. Here are the steps for downloading and using Process Hacker to stop a process:

  1. Click here and click the Installer button to download Process Hacker.
  2. Once downloaded, install Process Hacker and run it.
  3. Process Hacker will show you a list of running applications. Simply right-click the problematic application and select Terminate.

  1. Click Terminate to confirm.

Repeat these steps for all the applications you want to terminate (the ones that Task Manager couldn’t). If Process Hacker can’t terminate the processes, there isn’t much you can do.

Method 4: Use Process Explorer

Process Explorer is another free tool that can be used to explore the processes running on your system. This tool gives a detailed view and allows the editing of permissions as well. If Process Hacker didn’t work, you might try Process Explorer to see if this helps you terminate the application. Follow the steps below:

  1. Click here and select the link Download Process Explorer. This will download a zip file for you.
  2. You will need a compression program to unzip the contents of the downloaded file. Use Winzip or WinRAR.
  3. Double-click the downloaded zip file.
  4. Double-click procexp.exe or procexp64.exe to open Process Explorer.

  1. Once Process Explorer starts, it will give you a detailed list of programs running on your system. Locate and double-click the problematic application.
  2. Click the Security Tab.
  3. Click Permissions.

  1. Click Advanced.

  1. Select your account from the list.
  2. Click Edit.

  1. Check the options Full Control, Read, and Write.
  2. Click Show advanced permissions.

  1. Make sure the option Terminate is checked.
  2. Click Ok and click Ok again.

  1. Click Ok for all other Windows.
  2. Now, when you are back at Process Explorer, right-click the problematic program and select Kill Process.

This should solve the issue. If you are still having issues, do the following:

  1. Click on the File option (from Process Explorer) and select Show Details for All Processes.

  1. Click Yes if it asks for permissions.
  2. Process Explorer will restart now. Once Process Explorer restarts, right-click the problematic application and select Kill Process. This should solve the issue.

Method 5: Use WMIC

WMIC stands for Windows Management Instrumentation Console. This utility can be used to terminate processes as well. You can use WMIC and its commands to terminate processes from the command prompt. Some users found this helpful in getting rid of the problematic application. Here are the steps for using WMIC commands:

  1. Press the Windows key once.
  2. Type command prompt in the Start Search box.
  3. Right-click Command Prompt from the search results and select Run as administrator.

  1. Type wmic process where name=’myprocessname.exe’ delete and press Enter. You can get the process name by right-clicking the process you want to kill (from the Task Manager) and selecting Details. This will open the Details tab with your process already selected. Simply look at the name of the process and type it in the myprocessname.exe (don’t remove the quotes).

This should resolve the issue for you.

Method 6: Reboot

If nothing else worked, then this is your only choice. There are some processes that cannot be terminated, especially if you are dealing with system processes. This isn’t a solution, but it’s an option you are left with. A simple reboot will usually resolve the issue, and you will be able to use the application normally once the restart is complete.

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.