Friday, May 26, 2023

Windows Process useful commands

 

windows find port usage

netstat -aon | findstr<port_number>

eg: netstat -ano | findstr 8081


windows check details of process id

tasklist /fi "pid eq <process id>"

eg: tasklist /fi "pid eq 4716"


Kill Process forcefully

taskkill /im myprocess.exe /f

The "/f" is for "force". If you know the PID, then you can specify that, as in:

taskkill /pid 4716 /f