Get-CMUserCollectionExcludeMembershipRule
ユーザー コレクションの除外メンバーシップ ルールを取得します。
構文
Get-CMUserCollectionExcludeMembershipRule
-CollectionName <String>
[-ExcludeCollectionName <String>]
[<CommonParameters>]
Get-CMUserCollectionExcludeMembershipRule
-CollectionName <String>
-ExcludeCollection <IResultObject>
[<CommonParameters>]
Get-CMUserCollectionExcludeMembershipRule
-CollectionName <String>
-ExcludeCollectionId <String>
[<CommonParameters>]
Get-CMUserCollectionExcludeMembershipRule
-CollectionId <String>
-ExcludeCollection <IResultObject>
[<CommonParameters>]
Get-CMUserCollectionExcludeMembershipRule
-CollectionId <String>
-ExcludeCollectionId <String>
[<CommonParameters>]
Get-CMUserCollectionExcludeMembershipRule
-CollectionId <String>
[-ExcludeCollectionName <String>]
[<CommonParameters>]
Get-CMUserCollectionExcludeMembershipRule
-InputObject <IResultObject>
-ExcludeCollection <IResultObject>
[<CommonParameters>]
Get-CMUserCollectionExcludeMembershipRule
-InputObject <IResultObject>
-ExcludeCollectionId <String>
[<CommonParameters>]
Get-CMUserCollectionExcludeMembershipRule
-InputObject <IResultObject>
[-ExcludeCollectionName <String>]
[<CommonParameters>]
説明
このコマンドレットを使用して、ユーザー コレクションの 1 つ以上の除外メンバーシップ ルールを取得します。 除外 メンバーシップ ルールは、ルールが適用されるユーザー コレクションから別のコレクションのメンバーを除外します。
Configuration Manager は、除外されたコレクションのメンバーシップが変更された場合、スケジュールに基じてユーザー コレクションのメンバーシップを動的に更新します。
詳細については 、「Configuration Manager でコレクションを作成する方法」を参照してください。
注意
Configuration Manager サイト ドライブから Configuration Manager コマンドレットを実行します PS XYZ:\> 。 詳細については 、「Getting started」を参照してください。
例
例 1: ユーザー コレクションの除外メンバーシップ ルールを取得する
このコマンドは、ID XYZ00012を持つユーザー コレクションから ID XYZ00089を持つコレクションのメンバーを除外するルールを取得します。
Get-CMUserCollectionExcludeMembershipRule -CollectionId "XYZ00012" -ExcludeCollectionId "XYZ00089"
パラメーター
ルールを取得するユーザー コレクションの ID を指定します。 この値は 、CollectionID プロパティです。たとえば XYZ00012 、 です。 既定のコレクションには除外メンバーシップ ルールが含まれるので、この ID はサイト コードではなく、 で始まります SMS 。
| Type: | String |
| Aliases: | Id |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
ルールを取得するユーザー コレクションの名前を指定します。
| Type: | String |
| Aliases: | Name |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
除外されたコレクションのオブジェクトを指定して、ルールを取得します。 このオブジェクトを取得するには 、Get-CMCollection コマンドレット または Get-CMUserCollection コマンドレット を使用します。
| Type: | IResultObject |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
ルールを取得するには、除外されたコレクションの ID を指定します。 この値は 、CollectionID プロパティです。たとえば XYZ00012 、 です。 既定のコレクションを除外できます。この値は、サイト コードまたは SMS .
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
ルールを取得する除外コレクションの名前を指定します。
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
ルールを取得するユーザー コレクションのオブジェクトを指定します。 このオブジェクトを取得するには 、Get-CMCollection コマンドレット または Get-CMUserCollection コマンドレット を使用します。
| Type: | IResultObject |
| Aliases: | Collection |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
入力
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
出力
System.Object