Remove-​CM​Collection​Exclude​Membership​Rule

Removes a collection exclude membership rule

Syntax

Remove-CMCollectionExcludeMembershipRule
      -CollectionId <String>
      [-Confirm]
      -ExcludeCollection <IResultObject>
      [-Force]
      [-WhatIf]
      [<CommonParameters>]
Remove-CMCollectionExcludeMembershipRule
      -CollectionId <String>
      [-Confirm]
      -ExcludeCollectionId <String>
      [-Force]
      [-WhatIf]
      [<CommonParameters>]
Remove-CMCollectionExcludeMembershipRule
      -CollectionId <String>
      [-Confirm]
      -ExcludeCollectionName <String>
      [-Force]
      [-WhatIf]
      [<CommonParameters>]
Remove-CMCollectionExcludeMembershipRule
      -CollectionName <String>
      [-Confirm]
      -ExcludeCollectionName <String>
      [-Force]
      [-WhatIf]
      [<CommonParameters>]
Remove-CMCollectionExcludeMembershipRule
      -CollectionName <String>
      [-Confirm]
      -ExcludeCollection <IResultObject>
      [-Force]
      [-WhatIf]
      [<CommonParameters>]
Remove-CMCollectionExcludeMembershipRule
      -CollectionName <String>
      [-Confirm]
      -ExcludeCollectionId <String>
      [-Force]
      [-WhatIf]
      [<CommonParameters>]
Remove-CMCollectionExcludeMembershipRule
      [-Confirm]
      -ExcludeCollection <IResultObject>
      [-Force]
      -InputObject <IResultObject>
      [-WhatIf]
      [<CommonParameters>]
Remove-CMCollectionExcludeMembershipRule
      [-Confirm]
      -ExcludeCollectionId <String>
      [-Force]
      -InputObject <IResultObject>
      [-WhatIf]
      [<CommonParameters>]
Remove-CMCollectionExcludeMembershipRule
      [-Confirm]
      -ExcludeCollectionName <String>
      [-Force]
      -InputObject <IResultObject>
      [-WhatIf]
      [<CommonParameters>]

Description

{{Fill in the Description}}

Examples

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Required Parameters

-CollectionId

{{Fill CollectionId Description}}

Type:String
Aliases:Id
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CollectionName

{{Fill CollectionName Description}}

Type:String
Aliases:Name
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExcludeCollection

{{Fill ExcludeCollection Description}}

Type:IResultObject
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExcludeCollectionId

{{Fill ExcludeCollectionId Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExcludeCollectionName

{{Fill ExcludeCollectionName Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

{{Fill InputObject Description}}

Type:IResultObject
Aliases:Collection
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

{{Fill Force Description}}

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Outputs

System.Object