Powerful asynchronus IPv4 Port Scanner.
This powerful asynchronus IPv4 Port Scanner allows you to scan every Port-Range you want (500 to 2600 would work). Only TCP-Ports are scanned.
The result will contain the Port number, Protocol, Service name, Description and the Status.
To reach the best possible performance, this script uses a RunspacePool. As you can see in the following screenshot, the individual tasks are distributed across all cpu cores:
Invoke-IPv4PortScan [-ComputerName] <String> [[-StartPort] <Int32>] [[-EndPort] <Int32>] [[-Threads] <Int32>] [[-Force]] [[-UpdateList]] [<CommonParameters>]
PS> Invoke-IPv4PortScan -ComputerName fritz.box -StartPort 1 -EndPort 500
Port Protocol ServiceName ServiceDescription Status
---- -------- ----------- ------------------ ------
21 tcp ftp File Transfer Protocol [Control] Open
53 tcp domain Domain Name Server Open
80 tcp http World Wide Web HTTP Open
PS> Invoke-IPv4PortScan -ComputerName TEST-PC-01 -StartPort 1 -EndPort 500
PS> TEST-PC-01 is not reachable!
PS> Would you like to continue? (perhaps only ICMP is blocked) [yes|no]: yes
Port Protocol ServiceName ServiceDescription Status
---- -------- ----------- ------------------ ------
80 tcp http World Wide Web HTTP Open