Hello,
Please help me to write a script that displays
1.Listening services
2.the ports used by those services
3.Protocols used by those services
i can use
netstat -a | findstr "LISTEN"
but it wont give the port number
i can use
netstat -an | findstr "LISTEN"
but it wont give the service name
Thease commands give other information which i dont need. How to access and print only specific fields .In this case i need only "service name" "port No" "protocol" only.For example, the output should be like
Service Port Protocol
----------------------------------------------------------
epmap 135 TCP
Thanks in advance
a4akk
Configuration: Windows XP Internet Explorer 6.0
Hello,
|