How To Find Out The Pid Of A Process

Table of contents:

How To Find Out The Pid Of A Process
How To Find Out The Pid Of A Process

Video: How To Find Out The Pid Of A Process

Video: How To Find Out The Pid Of A Process
Video: how to Find out service/ process from the PID 4 ? 2024, May
Anonim

When a process starts on the computer, it gets its pid, that is, the process ID. Sometimes it becomes necessary to find out this very identifier. Perhaps, for some reason, you need to disable a running process, for example, if it interferes with uninstalling a program. There are several ways to find out the pid. The simplest of them is to do it using the task manager and the command line.

How to find out the pid of a process
How to find out the pid of a process

Necessary

a computer with Windows OS (XP, Windows 7)

Instructions

Step 1

Press ctrl + alt + del on your keyboard. If your operating system is Windows XP, then the task manager will appear immediately, if Windows 7 - a window will appear in which you can select it.

Step 2

In Task Manager, select the Processes tab. Now here, click on the "View" item. An additional window will appear. In it, select the "Select Columns" option. A dialog box will appear in which the topmost item will be named "Process ID (pid)". Check the box next to it. Save the settings by clicking OK.

Step 3

Then in the device manager go to the "Processes" tab, where you will see the line "Process ID". Find in it the name of the process whose ID you need to find out, and look at its value.

Step 4

Now we will consider how to find out this value using the command line of the operating system. Click the "Start" button and go to the "All Programs" tab. Select "Standard Programs". Here find the "Command Prompt" menu item and run it. Type tasklist and press Enter. After activating this command, a list of all currently active processes will appear in the command prompt window. After the name of each of them, its identifier will be written.

Step 5

If you need to quickly complete the process, then you can do it like this. After you know the process ID, type taskkill / pid 0000 at the command line. Instead of zeros, enter the number of the process ID that you want to demolish. After that, the system will send a signal to complete it, and it will be turned off.

Recommended: