{"id":1497,"date":"2024-04-09T12:49:47","date_gmt":"2024-04-09T12:49:47","guid":{"rendered":"https:\/\/howtogeek.blog\/no\/?p=1497"},"modified":"2024-04-09T12:49:47","modified_gmt":"2024-04-09T12:49:47","slug":"how-to-fix-access-denied-in-task-manager-when-ending-process-task-on-windows-11-no","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/no\/how-to-fix-access-denied-in-task-manager-when-ending-process-task-on-windows-11-no\/","title":{"rendered":"How to Fix Access Denied in Task Manager When Ending Process\/ Task on Windows 11"},"content":{"rendered":"<p>Whenever something goes wrong with a process or app on our PCs, our first inclination is to dive into the Task Manager and end that task. Usually, it works like a charm and kills the program freezing or misbehaving. But when the Task Manager itself throws the \u2018Access Denied\u2019 message your way, and you\u2019re unable to terminate the process, it\u2019s natural to get stumped. But there are ways to fix this frustrating problem. <\/p>\n<p><strong>Why is access denied when trying to end the task? <\/strong>There could be many reasons why you can\u2019t end a task. Sometimes, it\u2019s a simple matter of inadequate administrative privileges. But sometimes, the reasons could be more complicated. It could be an anti-virus software that\u2019s preventing the process from ending. Alternatively, it could be that the process is currently locked in waiting for some kernel resource, like a (buggy) driver, because of which you can\u2019t end it. Here\u2019s how you can resolve this problem. <\/p>\n<h2 id=\"1-run-task-manager-as-administrator\">1. Run Task Manager as Administrator<\/h2>\n<p>If the problem in ending the task is because of inadequate permissions, then running the task manager as an administrator will solve this issue. <\/p>\n<ul>\n<li>Go to the search option from the taskbar. <\/li>\n<li>Type <code>Task Manager<\/code> in the search menu. <\/li>\n<li>Task Manager will appear in the search results. From the right pane, click on \u2018Run as administrator\u2019. <\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"689\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/04\/image-44-1.webp\" title=\"\" width=\"1225\"\/><\/figure>\n<p>Task Manager will open with administrative privileges. Now, try to end the task that was causing the problem. <\/p>\n<h2 id=\"2-use-the-wmic-command-to-terminate-the-process\">2. Use the WMIC Command to Terminate the Process<\/h2>\n<p>If you can\u2019t end the process with administrative privileges, try using the WMIC (Windows Management Instrumentation Command-line) command in Command Prompt to terminate it. <\/p>\n<ul>\n<li>Open the Command Prompt window as an administrator on your PC. <\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"683\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/04\/image-47-1.webp\" title=\"\" width=\"1215\"\/><\/figure>\n<ul>\n<li>Click \u2018Yes\u2019 from the User Account Control window to proceed. <\/li>\n<li>Next, type the following command in the CMD window and press \u2018Enter\u2019 to execute it: <code>wmic process where name='processname.exe' call terminate<\/code>. Replace processname.exe with the actual name of the process in the single quotes. For example, to terminate File Explorer, enter the command: <code>wmic process where name='explorer.exe' call terminate<\/code>.<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"597\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/04\/image-48-1.webp\" title=\"\" width=\"1061\"\/><\/figure>\n<ul>\n<li>If you don\u2019t know the process\u2019s name, go to the Task Manager, right-click the process, and select \u2018Go to Details\u2019 from the menu. <\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"687\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/04\/image-49-1.webp\" title=\"\" width=\"1222\"\/><\/figure>\n<ul>\n<li>You\u2019ll find the name of the process there. <\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"646\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/04\/image-50-1.webp\" title=\"\" width=\"1149\"\/><\/figure>\n<ul>\n<li>This command sends a soft request to the specified program to close it and gives it a chance to gracefully shut down. If the process responds to the command, it\u2019ll either shut down right away or first ask for your confirmation and then end. Go to the Task Manager to see if it worked. <\/li>\n<li>If the process is still running, use this command to terminate it: <code>wmic process where name='processname.exe' delete<\/code>. Again, replace processname.exe with the actual process. Taking the same example as above of File Explorer, the command would become: <code>wmic process where name='explorer.exe' delete<\/code>. <\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"508\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/04\/image-51-1.webp\" title=\"\" width=\"903\"\/><\/figure>\n<p>This command doesn\u2019t send a request to the application to close it. Instead, it forcefully terminates the process. Go to the Task Manager to check if it worked. <\/p>\n<h2 id=\"3-use-the-taskkill-command-to-terminate-the-process\">3. Use the Taskkill Command to Terminate the Process<\/h2>\n<p>If the WMIC commands weren\u2019t successful in terminating the task\/ process, then it\u2019s time for the big guns. Taskkill Command is the most forceful option for killing a process and can terminate almost any process. <\/p>\n<p>To run the Taskkill command, you\u2019ll need either the process name or the PID. <\/p>\n<ul>\n<li>Open an elevated Command Prompt window, i.e., CMD with administrative privileges. <\/li>\n<li>Then, enter the following command and press \u2018Enter\u2019 to execute it: <code>taskkill \/f \/im processname.exe<\/code>. Again, replace processname.exe with the actual name of the process, which you can get from the Task Manager, as explained in the above section.The <code>\/f<\/code> flag is used to indicate that the program needs to be forcefully terminated, even if it is resisting termination. <\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"542\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/04\/image-52-1.webp\" title=\"\" width=\"964\"\/><\/figure>\n<ul>\n<li>If you get an error executing this command that says that the process could not be terminated because of a child process running, execute the command with the additional <code>\/t<\/code> flag that kills child process:  <code>taskkill \/f \/t \/im processname.exe<\/code>; replace processname.exe with the actual name. <\/li>\n<\/ul>\n<p>Go to the Task Manager and check if the termination was successful. <\/p>\n<h2 id=\"4-reboot-your-pc\">4. Reboot your PC<\/h2>\n<p>If the cause behind this issue is the fact that the process is locked in waiting for a kernel resource or stuck in some other loop, then rebooting your PC is the only way to solve this problem. It\u2019s not ideal to reboot the PC in the middle of something, but restarting your PC is the only way to terminate the process if nothing else has worked till now. <\/p>\n<p>That\u2019s it. If you\u2019re facing a problem while trying to end a task\/ process in Windows 11 where the Task Manager is giving the \u2018Access denied\u2019 message, the above ways will help you get around it and terminate the process regardless. If there is a process that cannot be killed using even the above methods, check your system for malware. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whenever something goes wrong with a process or app on our PCs, our first inclination is to dive into the Task Manager and end that task. Usually, it works like a charm and kills the program freezing or misbehaving. But when the Task Manager itself throws the \u2018Access Denied\u2019 message your way, and you\u2019re unable [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5,85],"class_list":["post-1497","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-windows","tag-windows-11"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/no\/wp-json\/wp\/v2\/posts\/1497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/no\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/no\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/no\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/no\/wp-json\/wp\/v2\/comments?post=1497"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/no\/wp-json\/wp\/v2\/posts\/1497\/revisions"}],"predecessor-version":[{"id":1498,"href":"https:\/\/howtogeek.blog\/no\/wp-json\/wp\/v2\/posts\/1497\/revisions\/1498"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/no\/wp-json\/wp\/v2\/media?parent=1497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/no\/wp-json\/wp\/v2\/categories?post=1497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/no\/wp-json\/wp\/v2\/tags?post=1497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}