Saber si un puerto de Windows esta siendo usado y como saber cual programa lo tiene abierto

netstat -aon | findstr :puerto
tasklist | findstr <PID>

Ej.

netstat -aon | findstr :5432
>> TCP    0.0.0.0:5432           0.0.0.0:0              LISTENING       3344
   TCP    [::]:5432              [::]:0                 LISTENING       3344

tasklist | findstr 3344
>> postgres.exe                  3344 Services                   0    13.048 KB