Как узнать идентификатор процесса (PID или ИД…
Статья обновлена: 31 октября 2023
ID: 6325
Вы можете узнать идентификатор процесса (PID или ИД процесса) с помощью Диспетчера задач или командной строки.
Как узнать PID c помощью Диспетчера задач
Как узнать PID c помощью командной строки
Спасибо за ваш отзыв, вы помогаете нам становиться лучше!
Спасибо за ваш отзыв, вы помогаете нам становиться лучше!
Каждый запущенный процесс в Windows имеет свой числовой идентификатор — PID или ИД процесса, который может использоваться для обращения к конкретному процессу, например, для получения информации о нём или принудительного закрытия.
В этой инструкции несколько способов узнать PID процесса в Windows 11 или Windows 10, большинство из которых подойдут и для предыдущих версий системы.
ИД процесса в диспетчере задач
Быстрый и простой способ посмотреть PID процесса в графическом интерфейсе — использовать диспетчер задач Windows, для этого:
- Откройте диспетчер задач: вы можете использовать контекстное меню кнопки «Пуск», нажать клавиши Ctrl+Shift+Esc или использовать меню Ctrl+Alt+Delete для этого.
- В диспетчере задач переключитесь на вкладку «Сведения» (в Windows 11, переключение выполняется в меню) или «Подробности» (в Windows 10).
- Обратите внимание на столбец «ИД процесса» — это и есть нужный PID. Если столбец не отображается, нажмите по заголовку таблицы с процессами правой кнопкой мыши и используйте пункт «Выбрать столбцы», чтобы включить показ нужного столбца.
Для большинства пользователей этого метода будет достаточно для получения нужной информации.
Однако, если узнать PID запущенного процесса требуется при выполнении какого-либо пользовательского скрипта, могут пригодиться описанные в последней части инструкции методы его получения без использования графического интерфейса — в командной строке или PowerShell.
PID процесса в Мониторе ресурсов
Ещё один метод, очень похожий на предыдущий — использование встроенного инструмента «Монитор ресурсов»:
- Нажмите клавиши Win+R на клавиатуре, либо нажмите правой кнопкой мыши по кнопке «Пуск» и выберите пункт «Выполнить».
- Введите resmon в диалоговое окно «Выполнить» и нажмите Enter.
- Откроется окно «Монитор ресурсов» в нем, на вкладке «Обзор» вы увидите список процессов, распределенных по группам (использование ЦП, Диска, Сети и Памяти) с указанием их ИД в соответствующем столбце.
Process Explorer
Process Explorer — «продвинутый» диспетчер задач из Microsoft Sysinternals, скачать его можно как в комплекте с другими утилитами, так и отдельно с официального сайта.
После запуска утилиты, информацию о PID процесса вы сможете найти в одноименном столбце.
Командная строка
Получить PID процесса можно с помощью команд командной строки. Шаги будут следующими:
- Запустите командную строку, лучше — от имени администратора (как это сделать).
- Чтобы получить список всех процессов, включая информацию об их PID, введите команду
tasklist
и нажмите Enter.
- Для отображения только процессов с заданными именами файлов (в имени допустимы wildcard-символы, например, *) можно использовать следующую команду:
tasklist /FI "IMAGENAME eq имя_файла.exe"
- Вы можете вывести результат выполнения команды в текстовый файл, пример:
tasklist > C:\pid.txt
С помощью tasklist можно отфильтровать процессы и по другим свойствам, например, получить список только зависших программ, подробнее на тему получения списка не отвечающих программ — в этой статье.
Windows PowerShell или Терминал Windows
И ещё одна возможность для получения PID процессов — использование терминала Windows или PowerShell:
- Запустите Windows PowerShell или Терминал Windows, для этого можно использовать меню по правому клику на кнопке «Пуск».
- Базовый вариант команды:
Get-Process
выдаст список всех процессов, PID будет отображен в столбце Id
- Если в выводе требуется оставить информацию только об имени процесса и его ИД, используйте следующий синтаксис:
Get-Process | Format-Table -Property ProcessName,Id
- Команда для получения информации о PID процессов с указанным именем:
Get-Process | Where {$_.ProcessName -Like "Имя процесса"} | Format-Table -Property ProcessName,Id
На этом всё: надеюсь, подходящий для себя способ получить нужную информацию вы нашли. Знаете другие методы получения PID процессов в Windows? — буду рад вашему комментарию ниже.
(Image credit: Future)
On Windows 10, every process from an app or a service has an identification number known as a Process ID (PID). The PID has various uses, but mainly, it exists to identify each process across the system and programs running multiple instances (such as when editing two text files with Notepad).
Although users do not have to worry about the system processes, the ability to determine their specific system number can come in handy in many scenarios. For instance, when you need to debug an app. A program is stuck, and you must terminate the process manually. Or you need to check the system resources that a particular process is using.
Regardless of the reason, Windows 10 includes at least four ways to check the PID for any process running in the system using Task Manager, Resource Monitor, Command Prompt, and PowerShell.
This guide will walk you through the steps to identify the process identification number for an app or service on Windows 10.
How to determine Process ID from Task Manager
To check the Process ID for an app on Windows 10, use these steps:
- Open Start.
- Search for Task Manager and click the top result to open the app.
- Quick tip: You can also open the app by right-clicking the Taskbar and selecting the Task Manager option, right-clicking the Start button and selecting the Task Manager option, or using the «Ctrl + Shift + Esc» keyboard shortcut.
- Click the Details tab.
- Confirm the app’s Process ID in the PID column.
- Click the Services tab.
- Confirm the app’s Process ID in the PID column.
Once you complete the steps, you will know the process identification number for services and applications running and suspended on Windows 10.
How to determine Process ID from Resource Monitor
To find the Process ID for an app with the Resource Monitor console on Windows 10, use these steps:
All the latest news, reviews, and guides for Windows and Xbox diehards.
- Open Start.
- Search for Resource Monitor and click the top result to open the app.
- Click the Overview tab.
- Confirm the Process ID of apps and services in the PID column.
After you complete the steps, you will have an overview of the ID for the running and suspended processes.
How to determine Process ID from Command Prompt
To find out the ID of a process with commands on Windows 10, use these steps:
- Open Start.
- Search for Command Prompt and click the top result to open the terminal.
- Type the following command to view the Process ID list and press Enter: tasklist
- Type the following command to view a list of Process IDs for Microsoft Store apps and press Enter: tasklist /apps
- Type the following command to get the ID from the process name and press Enter: tasklist /svc /FI «ImageName eq PROCESS-NAME*»
In the command, make sure to replace PROCESS-NAME with the «.exe» name of the process. The * is a wildcard to match part of the name without having to type the exact name of the process. This example shows the processes for Notepad: tasklist /svc /FI «ImageName eq notepad*»
Once you complete the steps, the output will display the IDs for the processes running on the device.
How to determine Process ID from PowerShell
To determine the Process ID of an app or service with PowerShell, use these steps:
- Open Start.
- Search for PowerShell and click the top result to open the terminal.
- Type the following command to view the Process ID list and press Enter: Get-Process
- Type the following command to view information (including ID) about a process and press Enter: Get-Process PROCESS-NAME* | Format-List *
In the command, make sure to replace PROCESS-NAME with the «.exe» name of the process. The * is a wildcard to match part of the name without having to type the exact name of the process. This example shows the Notepad Process ID and all the available information about the process: Get-Process notepad* | Format-List *
- Type the following command to determine the ID and owner of the process and press Enter: Get-Process PROCESS-NAME* -IncludeUserName
In the command, make sure to replace PROCESS-NAME with the «.exe» name of the process. The * is a wildcard to match part of the name without having to type the exact name of the process. This example shows the processes for Notepad: Get-Process notepad* -IncludeUserName
After you complete the steps, the PowerShell output will list the Process ID along with other information about the app or service.
More resources
For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:
- Windows 11 on Windows Central — All you need to know
- Windows 10 on Windows Central — All you need to know
Cutting-edge operating system
A refreshed design in Windows 11 enables you to do what you want effortlessly and safely, with biometric logins for encrypted authentication and advanced antivirus defenses.
Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.
Application Process ID aka PID on Windows is useful for several reasons. It is mostly used to manage running processes on the system. The operating system uses PIDs to track and manage the resources used by each process, including memory, CPU, and I/O. PIDs can also terminate processes that are not responding or causing problems.
So, overall, PIDs are a fundamental part of managing and troubleshooting processes on a Windows operating system, and they play a critical role in maintaining the stability, performance, and security of the system.
Wondering how to find the application process ID on Windows 11? We’ve got you covered. In this post, we have listed a variety of methods that you can use to find PID on your device.
Let’s get started.
What is An Application Process ID (PID)?
An Application Process ID (PID) is a unique identification number assigned to each running process on a Windows operating system. It is a number that identifies a specific instance of a program or application currently running in memory.
Each process that runs on Windows is assigned a PID by the operating system, which helps the system to manage the processes and resources more efficiently. PIDs can be viewed and managed using various system tools such as the Task Manager, Resource Monitor, or command-line tools like “tasklist” and “taskkill.”
PIDs are used by Windows to track and manage the memory, CPU, and other resources used by each process. They also help identify and troubleshoot issues related to specific processes or applications.
How to find the Application Process ID on Windows 11?
Here are some simple methods that you can use for identifying PID on your device.
Method 1: Use the Task Manager
Well, yes, here comes one of the quickest easy to find application process IDs on a Windows PC.
Press the Control + Shift+ Escape key combination to open the Task Manager app. Alternatively, you can also use the Win + X shortcut and select “Task Manager” from the context menu. In the Task Manager window, switch to the “Details” tab with a three-horizontal lines icon.
In the next window, you will be able to see the application process ID of each process under a dedicated “PID” column.
The PID is usually not displayed in the “Processes” tab of Task Manager. However, if you want this column to always show up, here’s what you need to do.
Switch to the “Processes” tab and right-click on any column and select “PID”.
Once you select it, PID will always appear on the Processes tab each time your launch the Task Manager app.
Also read: Task Manager not Working on Windows 11? Here’s the Fix!
Method 2: Use the Resource Monitor App
You can find the Application Process ID (PID) of a running process using the Resource Monitor on a Windows operating system by following these steps:
- Press the Windows key + R to open the Run dialog box and type “resmon” in the Run dialog box and press Enter. This will open the Resource Monitor.
- In the Resource Monitor, go to the CPU tab.
- Under the “Processes” section, locate the process for which you want to find the PID.
- Once you have located the process, the PID will be displayed in the “PID” column next to the process name.
- Note down the PID number for the process you are interested in.
That’s it! You have now found the Application Process ID (PID) of a running process using the Resource Monitor on a Windows operating system.
Also read: How To Fix Disk Stuck at 100% in Windows Task Manager
Method 3: Command Prompt
Yes, you can also use the Terminal app to find the PID of a specific process. Follow these quick steps to get started.
- Open the Command Prompt app on your device in admin mode. Tap on the search icon placed on the Taskbar and type “Command Prompt”. Select the “Run as administrator” option.
- In the Command Prompt window, type “tasklist” and press Enter. This will display a list of all running processes on your system.
- Find the process for which you want to find the PID in the list, and note down the name of the process.
- Also, if the tasklist command output appears to be lengthy and difficult to read, especially when there are many running processes, here’s something you can do. To make it easier to navigate the results, you can copy them to a text file.
- To do this, open the Command Prompt and type the following command:
tasklist > D:\PIDfile.txt
- After you run this command, you can open the text file in any text editor to view and search the results more easily.
Also read FIX: There Are No Startup Items to Display in Task Manager Error (Windows 11)
Method 4: Via Windows PowerShell
To retrieve the Application Process ID (PID) of a running process on Windows, PowerShell can be utilized by performing the following steps:
- Open PowerShell by clicking the Start menu, typing “PowerShell” in the search bar, and selecting “Windows PowerShell” from the search results.
- In the PowerShell window, type “Get-Process” and press Enter. This will display a list of all running processes on your system.
- Find the process for which you want to find the PID in the list, and note down the name of the process.
- In the PowerShell window, type “Get-Process -Name processname | Select-Object Id” and press Enter, replacing “processname” with the name of the process you want to find the PID for. This will display the PID number for the specified process.
- Note down the PID number for the process you are interested in.
And that’s it!
Method 5: Use Third-Party Tools
Yes, there are various third-party tools available for Windows that you can use to find the PID of a running process. Some popular examples include:
- Process Explorer – a free tool from Microsoft that provides detailed information about running processes, including the PID.
- Process Hacker – an open-source tool that offers advanced features for monitoring and managing processes, including the ability to view and filter processes by their PID.
- System Explorer – a free tool that provides a detailed overview of system processes, including their PID, CPU usage, memory consumption, and more.
These tools offer a more user-friendly and feature-rich alternative to the built-in tools like Command Prompt, Resource Monitor, and PowerShell, and can be particularly useful for advanced users or system administrators who need to monitor and manage large numbers of processes on their systems.
Also read: How To Kill Unresponsive Programs Without Task Manager
Conclusion
The Application Process ID (PID) is a unique identifier that helps to manage and monitor running processes on a Windows operating system. In this blog post, we explored several methods to find the PID of a running process, including using the Command Prompt, Resource Monitor, and PowerShell. Each of these methods has its advantages and disadvantages, and you can choose the one that works best for your needs and familiarity with the tools.
Additionally, we mentioned a few popular third-party tools that can offer advanced features and user-friendly interfaces for monitoring and managing processes on your system. By using these methods and tools, you can efficiently manage your system processes and troubleshoot any issues that may arise.
Did you learn something new today? Feel free to share what you think in the comments section!