Export (0) Print
Expand All
Expand Minimize

Remove-CMUserCollectionExcludeMembershipRule

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Remove-CMUserCollectionExcludeMembershipRule

Removes an exclude membership rule from one or more user collection in the Configuration Manager hierarchy.

Syntax

Parameter Set: ByCollectionNameAndExcludeCollectionName
Remove-CMUserCollectionExcludeMembershipRule -CollectionName <String> -ExcludeCollectionName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ByCollectionIdAndExcludeCollectionId
Remove-CMUserCollectionExcludeMembershipRule -CollectionId <String> -ExcludeCollectionId <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ByCollectionIdAndExcludeCollectionName
Remove-CMUserCollectionExcludeMembershipRule -CollectionId <String> -ExcludeCollectionName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ByCollectionNameAndExcludeCollectionId
Remove-CMUserCollectionExcludeMembershipRule -CollectionName <String> -ExcludeCollectionId <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ByCollectionValueAndExcludeCollectionId
Remove-CMUserCollectionExcludeMembershipRule -Collection <IResultObject> -ExcludeCollectionId <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ByCollectionValueAndExcludeCollectionName
Remove-CMUserCollectionExcludeMembershipRule -Collection <IResultObject> -ExcludeCollectionName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Remove-CMUserCollectionExcludeMembershipRule cmdlet removes an exclude rule from the specified collections. You can specify the user collections by using their names, IDs, or by specifying an input object that represents the collections.

For more information about collection rules in Microsoft System Center 2012 Configuration Manager, see Introduction to Collections in Configuration Manager (http://go.microsoft.com/fwlink/p/?LinkID=259433) in the TechNet library.

Parameters

-Collection<IResultObject>

Specifies a Configuration Manager user collection object. To obtain a user collection object, use the Get-CMUserCollection cmdlet.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-CollectionId<String>

Specifies the IDs of a user collection.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-CollectionName<String>

Specifies the name of a user collection.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ExcludeCollectionId<String>

Specifies the ID of the collection whose members are excluded from the user collections.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ExcludeCollectionName<String>

Specifies the name of the collection whose members are excluded from the user collections.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Force

Specifies whether you want to suppress the confirmation message that Configuration Manager displays at the command line before the rule is removed.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

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.

Examples

Example 1: Remove an exclude membership rule

This command removes the exclude membership rule that has the ID SMSDM001 from the user collection that has the ID in the 9990000D.


PS C:\> Remove-CMUserCollectionExcludeMembershipRule –CollectionId "9990000D" –ExcludeCollectionId "SMSDM001"

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft