Expand Minimize
This topic has not yet been rated - Rate this topic

Get-CMDeviceCollectionDirectMembershipRule

Updated: March 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Get-CMDeviceCollectionDirectMembershipRule

Gets the direct membership rules of one or more device collection in the Configuration Manager hierarchy.

Syntax

Parameter Set: ByCollectionNameAndResourceName
Get-CMDeviceCollectionDirectMembershipRule -CollectionName <String> -ResourceName <String> [ <CommonParameters>]

Parameter Set: ByCollectionIdAndResourceId
Get-CMDeviceCollectionDirectMembershipRule -CollectionId <String> -ResourceId <Int32> [ <CommonParameters>]

Parameter Set: ByCollectionIdAndResourceName
Get-CMDeviceCollectionDirectMembershipRule -CollectionId <String> -ResourceName <String> [ <CommonParameters>]

Parameter Set: ByCollectionNameAndResourceId
Get-CMDeviceCollectionDirectMembershipRule -CollectionName <String> -ResourceId <Int32> [ <CommonParameters>]

Parameter Set: ByCollectionValueAndResourceId
Get-CMDeviceCollectionDirectMembershipRule -Collection <IResultObject> -ResourceId <Int32> [ <CommonParameters>]

Parameter Set: ByCollectionValueAndResourceName
Get-CMDeviceCollectionDirectMembershipRule -Collection <IResultObject> -ResourceName <String> [ <CommonParameters>]




Detailed Description

The Get-CMDeviceCollectionDirectMembershipRule cmdlet retrieves the direct rules of the specified collections. You can specify the device collections by using their names, Ids, or by specifying an object that represents the collections.

A direct rule lets you explicitly choose the members of the device collection. For more information about collection rules, see Introduction to Collections in Configuration Manager.

Parameters

-Collection<IResultObject>

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-CollectionId<String>

Specifies the Ids of the device collections.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-CollectionName<String>

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ResourceId<Int32>

Specify the Id of the rule that you want to retrieve. To retrieve all the direct rules for the collections leave this parameter blank.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ResourceName<String>

Aliases

none

Required?

true

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.

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.

 
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.