< Back
ConvertTo-BinaryIP
Post
NAME ConvertTo-BinaryIP
SYNOPSIS
Converts a Decimal IP address into a binary format.
SYNTAX
ConvertTo-BinaryIP [-IPAddress] <IPAddress> [<CommonParameters>]
DESCRIPTION
ConvertTo-BinaryIP uses System.Convert to switch between decimal and binary format. The output from this function
is dotted binary.
PARAMETERS
-IPAddress <IPAddress>
An IP Address to convert.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.Net.IPAddress
OUTPUTS
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>ConvertTo-BinaryIP 1.2.3.4
Convert an IP address to a binary format.
RELATED LINKS
SYNOPSIS
Converts a Decimal IP address into a binary format.
SYNTAX
ConvertTo-BinaryIP [-IPAddress] <IPAddress> [<CommonParameters>]
DESCRIPTION
ConvertTo-BinaryIP uses System.Convert to switch between decimal and binary format. The output from this function
is dotted binary.
PARAMETERS
-IPAddress <IPAddress>
An IP Address to convert.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.Net.IPAddress
OUTPUTS
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>ConvertTo-BinaryIP 1.2.3.4
Convert an IP address to a binary format.
RELATED LINKS