Get-CMUserCollectionExcludeMembershipRule
Updated: March 1, 2013
Applies To: System Center 2012 Configuration Manager SP1
Get-CMUserCollectionExcludeMembershipRule
Syntax
Parameter Set: ByCollectionNameAndExcludeCollectionName Get-CMUserCollectionExcludeMembershipRule -CollectionName <String> -ExcludeCollectionName <String> [ <CommonParameters>] Parameter Set: ByCollectionIdAndExcludeCollectionId Get-CMUserCollectionExcludeMembershipRule -CollectionId <String> -ExcludeCollectionId <String> [ <CommonParameters>] Parameter Set: ByCollectionIdAndExcludeCollectionName Get-CMUserCollectionExcludeMembershipRule -CollectionId <String> -ExcludeCollectionName <String> [ <CommonParameters>] Parameter Set: ByCollectionNameAndExcludeCollectionId Get-CMUserCollectionExcludeMembershipRule -CollectionName <String> -ExcludeCollectionId <String> [ <CommonParameters>] Parameter Set: ByCollectionValueAndExcludeCollectionId Get-CMUserCollectionExcludeMembershipRule -Collection <IResultObject> -ExcludeCollectionId <String> [ <CommonParameters>] Parameter Set: ByCollectionValueAndExcludeCollectionName Get-CMUserCollectionExcludeMembershipRule -Collection <IResultObject> -ExcludeCollectionName <String> [ <CommonParameters>]
Detailed Description
The Get-CMUserCollectionExcludeMembershipRule cmdlet retrieves the rules that exclude the members of another collection from the user collections where the rule is applied. You can specify the user collections where the rule is applied by using their names, Ids, or by specifying an object that represents the collections. You can specify the collection whose members are excluded by using its name, Id, or an object that represents the collection.
Configuration Manager dynamically updates the membership of the user collection on a schedule if the membership of the excluded collection changes. For more information about membership 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 user collections where the rule is applied.
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 |
-ExcludeCollectionId<String>
Aliases | none |
Required? | true |
Position? | named |
Default Value | none |
Accept Pipeline Input? | True (ByPropertyName) |
Accept Wildcard Characters? | false |
-ExcludeCollectionName<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.
