< Back

ConvertTo-HexIP

Wed Jan 15, 2020 2:21 am

NAME ConvertTo-HexIP



SYNOPSIS

Convert a dotted decimal IP address into a hexadecimal string.





SYNTAX

ConvertTo-HexIP [-IPAddress] <IPAddress> [<CommonParameters>]





DESCRIPTION

ConvertTo-HexIP takes a dotted decimal IP and returns a single hexadecimal string value.





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-HexIP 192.168.0.1



Returns the hexadecimal string c0a80001.











RELATED LINKS