Domain Detective

API Reference

Class

CmdletTestPortScan

Namespace DomainDetective.PowerShell
Assembly DomainDetective.PowerShell
Implements
IDisposable
Modifiers sealed
Attributes
Cmdlet("Test", "DDNetworkPortScan") Alias(["Test-NetworkPortScan"]) OutputType([typeof(PortScanInfo)])

Scans a host for open TCP/UDP ports.

Inheritance

Remarks

Returns a unified PortScanInfo view with total/open counts and Raw (full analysis) for details. Profiles provide curated port lists; Ports overrides scan a custom set.

Examples

Scan with default profile.


Test-DDNetworkPortScan -HostName example.com
        

Scan specific ports.


Test-DDNetworkPortScan -HostName example.com -Ports 22,80,443
        

Scan using profiles.


Test-DDNetworkPortScan -HostName example.com -Profile Default,SMB
        

Constructors

Methods

BeginProcessingAsync() #

Initializes logging and helper classes.

Returns

A completed task.

ProcessRecordAsync() #

Runs the port scan and writes results.

Returns

A task that represents the asynchronous operation.

Fields

public String HostName #
Parameter(Mandatory = true, Position = 0) ValidateNotNullOrEmpty

Host to scan.

public Int32[] Ports #
Parameter(Mandatory = false)

Port list to scan.

public PortScanProfile[] Profile #
Parameter(Mandatory = false)

Predefined profiles.

public SwitchParameter ShowProgress #
Parameter(Mandatory = false)

Show progress updates.

public DnsEndpoint DnsEndpoint #
Parameter(Mandatory = false)

DNS server used for queries.

{{ include "footer" }}