Convert a subnetmask to CIDR and vise versa.
Convert a subnetmask like 255.255.255 to CIDR (/24) and vise versa.
Convert-Subnetmask [[-CIDR] <Int32>] [<CommonParameters>]
Convert-Subnetmask [[-Mask] <IPAddress>] [<CommonParameters>]
PS> Convert-Subnetmask -CIDR 24
Mask CIDR
---- ----
255.255.255.0 24
PS> Convert-Subnetmask -Mask 255.255.0.0
Mask CIDR
---- ----
255.255.0.0 16