In a previous post, I presented a VBScript that displays the service assigned to common port numbers. You can also enter a search string to find any ports whose service (protocol) contain the search string.
Richard Siddaway suggested that the script should be written in Powershell instead, so here it is: Get-Port.ps1
Usage:
Get-Port.ps1 portnumber
This command gets the specified port number and displays the associated service
Get-Port.ps1 searchstring
This command displays all ports and services that match the search string. Searchstring is case insensitive.






.png)

0 comments:
Post a Comment
Thank you for your comment! It is my hope that you find the information here useful. Let others know if this post helped you out, or if you have a comment or further information.