< Back

ConvertTo-DecimalIP

Wed Jan 15, 2020 2:20 am

NAME ConvertTo-DecimalIP



SYNOPSIS

Converts a Decimal IP address into a 32-bit unsigned integer.





SYNTAX

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





DESCRIPTION

ConvertTo-DecimalIP takes a decimal IP, uses a shift operation on each octet and returns a single UInt32 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.UInt32





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>ConvertTo-DecimalIP 1.2.3.4



Converts an IP address to an unsigned 32-bit integer value.











RELATED LINKS