Get-CMUserCollectionDirectMembershipRule
Get-CMUserCollectionDirectMembershipRule
Gets the direct membership rules of one or more user collections in the Configuration Manager hierarchy.
構文
Parameter Set: ByCollectionNameAndResourceName
Get-CMUserCollectionDirectMembershipRule -CollectionName <String> -ResourceName <String> [ <CommonParameters>]
Parameter Set: ByCollectionIdAndResourceId
Get-CMUserCollectionDirectMembershipRule -CollectionId <String> -ResourceId <Int32> [ <CommonParameters>]
Parameter Set: ByCollectionIdAndResourceName
Get-CMUserCollectionDirectMembershipRule -CollectionId <String> -ResourceName <String> [ <CommonParameters>]
Parameter Set: ByCollectionNameAndResourceId
Get-CMUserCollectionDirectMembershipRule -CollectionName <String> -ResourceId <Int32> [ <CommonParameters>]
Parameter Set: ByCollectionValueAndResourceId
Get-CMUserCollectionDirectMembershipRule -Collection <IResultObject> -ResourceId <Int32> [ <CommonParameters>]
Parameter Set: ByCollectionValueAndResourceName
Get-CMUserCollectionDirectMembershipRule -Collection <IResultObject> -ResourceName <String> [ <CommonParameters>]
詳細説明
The Get-CMUserCollectionDirectMembershipRule cmdlet retrieves the direct rules of the specified collections. You can specify the user 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 user collection. For more information about collection rules, see Introduction to Collections in Configuration Manager (https://go.microsoft.com/fwlink/p/?LinkID=259433) on TechNet.
パラメーター
-Collection<IResultObject>
Specifies a Configuration Manager user collection object. To obtain a user collection object, use the Get-CMUserCollection cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-CollectionId<String>
Specifies the ID of a user collection.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-CollectionName<String>
Specifies the name of a user collection.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ResourceId<Int32>
Specifies the ID of the rule that you want to retrieve.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ResourceName<String>
Specifies the name of the rule that you want to retrieve.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Get a direct membership rule
This command gets the direct membership rule that has the Id Res_94412512 for the collection named All Mobile Devices.
PS C:\> Get-CMUserCollectionDirectMembershipRule -CollectionName "All Mobile Devices" -ResourceId "Res_94412512"