Skip to main content

Test-MTU

SYNOPSIS

Finds the MTU size for packets to a remote computer.

SYNTAX

Test-MTU [[-RemoteAddress] <String[]>] [[-BufferSizeMax] <Int32>]
[<CommonParameters>]

DESCRIPTION

Will find the point where packets don't fragment (MTU) to a remote source, which defaults to the computers logon server if an address isn't specified.

EXAMPLES

EXAMPLE 1

Test-MTU

Runs Test-MTU.

EXAMPLE 2

Test-MTU www.wanderingstag.com
Shows how to test the MTU to the website www.wanderingstag.com.

EXAMPLE 3

Test-MTU COMP1,www.wanderingstag.com
Shows how to test the MTU to the computer COMP1 and the website www.wanderingstag.com.

EXAMPLE 4

Test-MTU COMP1 1272
Shows how to test the MTU to the computer COMP1, the max buffer size (MTU) will start at 1272.

PARAMETERS

-RemoteAddress

Specifies the name or IP of one or more remote computers.

Type: String[]
Parameter Sets: (All)
Aliases: Host, Name, Computer, ComputerName, TestAddress

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-BufferSizeMax

Allows you to specify the highest MTU to test.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: 1500
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.

INPUTS

OUTPUTS

System.Management.Automation.PSCustomObject

NOTES

ALIASES

None.

PLATFORM APPLICABILITY

Windows only. The platform-aware loader does not export this command on Linux or macOS.

POWERSHELL COMPATIBILITY

See PowerShell compatibility for the supported runtime policy. PowerShell 7.6 LTS is preferred.

https://docs.keldor.dev/powershell/keldor/Test-MTU