Get-CMIPSubnet

Get-CMIPSubnet

Gets a Configuration Manager IP subnet.

Syntax

Parameter Set: SearchByName
Get-CMIPSubnet [-Name <String[]> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMIPSubnet -Id <String[]> [ <CommonParameters>]

Detailed Description

The Get-CMIPSubnet cmdlet gets an IP subnet object that Microsoft System Center 2012 SP1 Configuration Manager uses as a boundary.

A boundary is a network location on the intranet that can contain one or more devices that you want to manage. Configuration Manager can define a boundary in several ways, including an IP subnet. For more information about boundaries, see Planning for Boundaries and Boundary Groups in Configuration Manager (https://go.microsoft.com/fwlink/?LinkId=268431) on TechNet.

Parameters

-Id<String[]>

Specifies an array of IDs for IP subnets. This is a Configuration Manager name, not an IP address or IP address and subnet.

Aliases

SubnetId

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String[]>

Specifies an array of names for IP subnets.

Aliases

ADSubnetName

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get an IP subnet

This command gets the IP subnet object named West07Subnet.

PS C:\> Get-CMIPSubnet -Name "West07Subnet"

Get-CMActiveDirectorySite