Get-CMDeviceCollectionIncludeMembershipRule

Gets an Include Collections membership rule for a device collection.

Syntax

Get-CMDeviceCollectionIncludeMembershipRule
   -CollectionId <String>
   -IncludeCollection <IResultObject>
   [<CommonParameters>]
Get-CMDeviceCollectionIncludeMembershipRule -CollectionId  -IncludeCollectionId 
 []
Get-CMDeviceCollectionIncludeMembershipRule -CollectionId  [-IncludeCollectionName ]
 []
Get-CMDeviceCollectionIncludeMembershipRule -CollectionName  [-IncludeCollectionName ]
 []
Get-CMDeviceCollectionIncludeMembershipRule -CollectionName  -IncludeCollection 
 []
Get-CMDeviceCollectionIncludeMembershipRule -CollectionName  -IncludeCollectionId 
 []
Get-CMDeviceCollectionIncludeMembershipRule -IncludeCollection  -InputObject 
 []
Get-CMDeviceCollectionIncludeMembershipRule -IncludeCollectionId  -InputObject 
 []
Get-CMDeviceCollectionIncludeMembershipRule [-IncludeCollectionName ] -InputObject 
 []

Description

The Get-CMDeviceCollectionIncludeMembershipRule cmdlet gets one or more Include Collections membership rules for a device collection.

Examples

Example 1: Get all Include Collections membership rules

PS C:\> Get-CMDeviceCollectionIncludeMembershipRule -CollectionName "Device"

This command gets all Include Collections membership rules for the collection named Device.

Example 2: Get Include Collections rules by using the pipeline

PS C:\> Get-CMCollection -Name "Device" | Get-CMDeviceCollectionIncludeMembershipRule

This command gets the device collection object named Device and uses the pipeline operator to pass the object to Get-CMDeviceCollectionIncludeMembershipRule, which gets all Include Collections membership rules for the device collection object.

Required Parameters

-CollectionId

Specifies the ID of a device collection.

Type:String
Aliases:Id
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CollectionName

Specifies the name of a device collection.

Type:String
Aliases:Name
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IncludeCollection

Specifies a device collection object included in a membership rule. To obtain a collection object, use the Get-CMCollection cmdlet.

Type:IResultObject
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IncludeCollectionId

Specifies the ID of a device collection included in a membership rule.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

Type:IResultObject
Aliases:Collection
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-IncludeCollectionName

Specifies the name of a device collection included in a membership rule.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False