Get-CMCollectionMembershipRule
For system use only to get membership rules from collections.
Syntax
Get-CMCollectionMembershipRule
-ChildSearchCriteria <SmsProviderSearch>
-CollectionName <String>
[-CollectionType <CollectionType>]
[-ExtraArguments <Object>]
-RuleClassName <String>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Get-CMCollectionMembershipRule
-ChildSearchCriteria <SmsProviderSearch>
-CollectionId <String>
[-CollectionType <CollectionType>]
[-ExtraArguments <Object>]
-RuleClassName <String>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Get-CMCollectionMembershipRule
-ChildSearchCriteria <SmsProviderSearch>
[-CollectionType <CollectionType>]
[-ExtraArguments <Object>]
-InputObject <IResultObject>
-RuleClassName <String>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Description
This cmdlet is used by other cmdlets to get membership rules. Don't directly use this cmdlet. Use one of the following cmdlets:
Parameters
-ChildSearchCriteria
Type: SmsProviderSearch
Aliases: SearchCriteria
Position: Named
Default value: None
Required: True
Accept pipeline input: False
Accept wildcard characters: False
-CollectionId
Type: String
Position: Named
Default value: None
Required: True
Accept pipeline input: False
Accept wildcard characters: False
-CollectionName
Type: String
Position: Named
Default value: None
Required: True
Accept pipeline input: False
Accept wildcard characters: False
-CollectionType
Type: CollectionType
Accepted values: User, Device
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False
-DisableWildcardHandling
DisableWildcardHandling treats wildcard characters as literal character values. Can't be combined with ForceWildcardHandling .
Type: SwitchParameter
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False
Type: Object
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False
-ForceWildcardHandling
ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Can't be combined with DisableWildcardHandling .
Type: SwitchParameter
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False
Type: IResultObject
Aliases: Collection
Position: Named
Default value: None
Required: True
Accept pipeline input: True
Accept wildcard characters: False
-RuleClassName
Type: String
Position: Named
Default value: None
Required: True
Accept pipeline input: False
Accept wildcard characters: False
System.Object
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
Outputs
System.Object