external help file: PoshToolbox-help.xml Module Name: PoshToolbox online version: https://gitlab.com/PoshAJ/PoshToolbox/-/blob/main/docs/New-IPAddress.md schema: 2.0.0
Creates an IPAddress object.
New-IPAddress [-IPAddress] <String[]> [<CommonParameters>]
The New-IPAddress
function creates a System.Net.IPAddress object that represents an IP address.
Specifies an IP address in dotted-quad notation for IPv4 and in colon-hexadecimal notation for IPv6.
Type: String[]
Parameter Sets: (All)
Aliases: Address
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
This function supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
You can pipe an IP Address as a string to this function.
Returns an IPAddress object for each resolved address.