Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

Windows 10: Use the Command Prompt to Close a Process

Judy SanhzSeptember 22, 2020 Comments (1)

Sooner or later, you’re going to have to deal with a program that won’t stop misbehaving. A buggy program can cause all kinds of problems, and that includes refusing to close.

Sure, you could use the Task Manager or press the Ctrl + Alt + Del keys, but there are other options. One of those options is closing a process by using the Command Prompt as an administrator.

How to Force Close Any Program – Windows 10

To close a task without using the Task Manager is a two-step process. First, you need to know the program’s PID or image name. You can get this data by typing tasklist and pressing Enter.

To force close a program, you can use the image name or the PID. For example, to close a program with the image name, you’ll need to enter the following: Taskkill /IM “NordVPN.exe” /F. The commands are easy to read. /IM refers to the image name, and /F is to force close the program despite any difficulties.

To force close a p process using the PID, your command will need to look like this:

Taskkill /PID #### /F

Don’t forget to replace the # for the PID. You might want to close a program using the PID when various processes have the same image name. To see more options, you can use type taskkill /? in the Command Prompt. Among many other options, you’ll see useful tips such as what command to use to close a group of processes by using taskkill /PID 2523 /PID 1422 /PID 5653 /T.

Close Any Program with PowerShell

If you’re more of a PowerShell fan, it’s also possible to force-close a program with this program. To open PowerShell, right-click on the Windows start menu and click on PowerShell Administrator.

If you’re not sure if you’re running a specific process, you can check by typing Get-Process, followed by the Enter key. Once you’ve found the process, you want to stop, enter the following command: Stop-Process -Name “ProcessName” -Force.

To kill a process using the PID, you’ll need to enter: Stop-Process -ID PID -Force.

Conclusion

For those times when clicking the x to close a program just won’t work, you know you can always count on the Command Prompt or the PowerShell. They’ll both get the job done, it’s just in case you have either one open at the time.

Categories: Windows

Author Judy Sanhz

I am a tech geek who loves technology. I have been writing about tech for over a decade, covering various devices and programs. I write about Android, Apple, and Windows devices and programs. I stay updated on the latest gadgets, upgrades, features, and news. I aim to make complicated tech information easy for everyone to read. I've been with TechniPages from the beginning to help others fix their tech issues with the easy-to-follow guides.

You Might Also Like

  • Windows 10: Block Apps From Using Microphone

    Mel HawthorneWindows
  • Microsoft-Protection-Definition-Update-Failed

    Fix: Protection Definition Update Failed

    Madalina DinitaWindows
  • Windows-11-Not-Displaying-Weather-Widget

    Windows 11: Different Options to Clear the Caches

    Judy SanhzWindows
  • Fix-Windows-11-Remember-My-Apps-Greyed-Out

    Windows 11: How to Remove the Taskbar Search Button

    Judy SanhzWindows

Comments

  1. Flynn says:
    November 29, 2021 at 4:59 pm

    Very helpful. Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

How to Enable Dark Mode on WhatsApp Updated Methods for 2023

How to Send HD Pictures and Videos on WhatsApp

How to Share Files Using Google Nearby Share

How to Share Files Using Google Nearby Share

Android Battery Will Not Charge Fix

Android Battery Will Not Charge Fix

Turning on Triple Touch Zoom on Android

Turning on Triple Touch Zoom on Android

How to Connect Outlook 2023 to Gmail

How to Connect Outlook 2023 to Gmail

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2023 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Legal & Privacy

© 2023 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.