I wrote this fun little script that scans the established connections on your network, Displays the PID and the service using that connection. This will automatically update every 10 seconds and you can see your network live. Win 10
Open notepad and save the command and save it as a .bat extension.
@Echo offcd /d C:\Windows\System32:loopclsfor /f "tokens=5" %%a in ('netstat -ano ^| findstr /i "established" ^| findstr /r /c:"[ ][0-9].[0-9].[0-9].[0-9]:[0-9][ ][0-9][ ]*ESTABLISHED"') do @(echo PID: %%a & tasklist /svc /fi "pid eq %%a")timeout /t 5 /nobreak >nulgoto loop
Open notepad and save the command and save it as a .bat extension.
@Echo offcd /d C:\Windows\System32:loopclsfor /f "tokens=5" %%a in ('netstat -ano ^| findstr /i "established" ^| findstr /r /c:"[ ][0-9].[0-9].[0-9].[0-9]:[0-9][ ][0-9][ ]*ESTABLISHED"') do @(echo PID: %%a & tasklist /svc /fi "pid eq %%a")timeout /t 5 /nobreak >nulgoto loop