Module: SubNetwork
Gets the broadcast address of a sub-network.
Get-BroadcastAddress
[[-Address] <byte[]> | <IPAddress> | <IpAddressBits> | <string> | <UInt32>]
[-Mask] <byte[]> | <IPAddress> | <IpAddressBits> | <string> | <UInt32>
[<CommonParameters>]
Get-BroadcastAddress
[[-Address] <byte[]> | <IPAddress> | <IpAddressBits> | <string> | <UInt32>]
[-Bits] <int>
[<CommonParameters>]
The Get-BroadcastAddress
function determines the broadcast address of a sub-network from an IP address within that sub-network and the information provided.
Get-BroadcastAddress -Address 192.168.0.32 -Mask 255.255.255.0
Get-BroadcastAddress -Address 192.168.0.32 -Bits 24
Specifies an IP address within the sub-network.
Type |
byte[], IPAddress, IpAddressBits, string, or UInt32 |
---|---|
Position |
0 |
Default Value |
None |
Accept Pipeline Input |
True |
Accept Wildcard Characters |
False |
Specifies the network mask.
Type |
byte[], IPAddress, IpAddressBits, string, or UInt32 |
---|---|
Position |
1 |
Default Value |
None |
Accept Pipeline Input |
False |
Accept Wildcard Characters |
False |
Specifies the network mask bits.
Type |
|
---|---|
Position |
1 |
Default Value |
None |
Accept Pipeline Input |
False |
Accept Wildcard Characters |
False |
byte[], IPAddress, IpAddressBits, *string, or UInt32
You can pipe a string, byte[], UInt32, IPAddress object, or IpAddressBits object to this function.
This function returns an IPAddressBits. This object will coerce neatly to a string.