In computing, the process identifier (a.k.a. process ID or PID) is a number used by most operating system kernels—such as those of Unix, macOS and Windows — to uniquely identify an active process.
This PID number may be used as a parameter in various function calls, allowing processes to be manipulated, such as adjusting the process’s priority or killing it altogether.
On the Windows family of OS, one can get the current process’s ID using the GetCurrentProcessId() function of the Windows API, and ID of other processes using GetProcessId().
- Find OS Version with 5 Different Methods in Windows PowerShell
- [Linux] MySQL: The Easy Way to Check Your Version
- How To Install Remmina in Ubuntu – A Remote Desktop Client
- Creating New Files and Directories Using Windows PowerShell New-Item CMDLET
- 18 Most Frequently Used Commands in Linux
- How to Install Apache Cassandra in Ubuntu
- Mount a Remote Filesystem over SSH with SSHFS
- How To Install and Configure Samba Server in Ubuntu
- Disable SMB3 Protocol With CMD and PowerShell in Windows 10
- [Linux] Scanning Open Ports With Netcat
Knowing an application’s PID helps you to identify programs running multiple instances, such as when editing two different files using the same app.
Check the top ways to find out the process ID for Windows operating system.
- Using Task Manager
- Using Resource Monitor
- Using Command Prompt
- Using Windows PowerShell
1. Using Task Manager
Task Manager, previously known as Windows Task Manager, is a windows utility, system monitor, and startup manager included with Microsoft Windows systems.
To identify Process ID with Task manager, open START menu and search for Task Manager.
Navigate to Details tab and confirm the process ID of the application in the PID column.
Navigate to Services tab, confirm the Process ID of the service in PID column.
2. Using Resource Monitor
You can also find the process ID using the resource monitor application that displays information about the use of computer hardware and software resources in real-time.
Open Start menu and search Resource Monitor, the navigate to CPU tab and confirm the process ID of the application and service in the PID column.
3. Using Command Prompt
To find out the process ID using command prompt, type the following command:
If you want to filter out the output for Microsoft Store and Applications, then the command is “tasklist /apps”
In case if you want to find out the Process ID of a particular application, then the command is:
Command: tasklist /svc /FI “ImageName eq notepad”
4. Using Windows PowerShell
To find the process ID using Windows PowerShell, the command is “Get-Process” which gets the file version information of a process.
To find the process ID of a particular application such as notepad then the command is:
Command: Get-Process notepad* | Format-List *
The below example shows the Process ID of Notepad application along with Username.
Command: Get-Process notepad* -IncludeUserName