Linux nmap for PowerShell (almost). Ping sweeps and scans a network for specified open ports. Can also perform DNS lookups. Port connect timeout is custom (milliseconds). Multithreaded with a default of 32 concurrent threads.
If you get over about 20-25,000 threads, you'll experience significant slowdowns towards the end, so avoiding that is recommended. This number may vary in your environment.
Svendsen Tech. Copyright (c) 2015, Joakim Borger Svendsen. All rights reserved.
-ComputerName <String[]>
List of CIDR, IP/subnet, IP or DNS/NetBIOS name.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
Port
-Port <Int32[]>
Port or ports to check.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
Dns
-Dns [<SwitchParameter>]
Perform a DNS lookup.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
ScanOnPingFail
-ScanOnPingFail [<SwitchParameter>]
Scan all hosts even if ping fails.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
ThrottleLimit
-ThrottleLimit <Int32>
Number of concurrent threads. Default: 32.
Required? false
Position? 3
Default value 32
Accept pipeline input? false
Accept wildcard characters? false
HideProgress
-HideProgress [<SwitchParameter>]
Do not display progress with Write-Progress
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
Timeout
-Timeout <Int32>
Timeout in seconds for each thread. Causes problems if too short. 30 as a default seems OK.
Required? false
Position? 4
Default value 30
Accept pipeline input? false
Accept wildcard characters? false
PortConnectTimeoutMs
-PortConnectTimeoutMs <Int32>
Port connect timeout in milliseconds. 5 seconds as a default for LAN scans. Increase for mobile/slow WAN.
Required? false
Position? 5
Default value 5000
Accept pipeline input? false
Accept wildcard characters? false
NoSummary
-NoSummary [<SwitchParameter>]
Do not display the end summary with start and end time, using Write-Host.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
AddService
-AddService [<SwitchParameter>]
Add IANA service for the port number in parentheses.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.