Get-CMDeviceCollectionIncludeMembershipRule
SYNOPSIS
Hämtar en medlemskapsregel för Inkludera samlingar för en enhetssamling.
SYNTAX
ByNameAndName (standard)
Get-CMDeviceCollectionIncludeMembershipRule -CollectionName <String> [-IncludeCollectionName <String>]
[<CommonParameters>]
ByNameAndValue
Get-CMDeviceCollectionIncludeMembershipRule -CollectionName <String> -IncludeCollection <IResultObject>
[<CommonParameters>]
ByNameAndId
Get-CMDeviceCollectionIncludeMembershipRule -CollectionName <String> -IncludeCollectionId <String>
[<CommonParameters>]
ByIdAndValue
Get-CMDeviceCollectionIncludeMembershipRule -CollectionId <String> -IncludeCollection <IResultObject>
[<CommonParameters>]
ByIdAndId
Get-CMDeviceCollectionIncludeMembershipRule -CollectionId <String> -IncludeCollectionId <String>
[<CommonParameters>]
ByIdAndName
Get-CMDeviceCollectionIncludeMembershipRule -CollectionId <String> [-IncludeCollectionName <String>]
[<CommonParameters>]
ByValueAndValue
Get-CMDeviceCollectionIncludeMembershipRule -InputObject <IResultObject> -IncludeCollection <IResultObject>
[<CommonParameters>]
ByValueAndId
Get-CMDeviceCollectionIncludeMembershipRule -InputObject <IResultObject> -IncludeCollectionId <String>
[<CommonParameters>]
ByValueAndName
Get-CMDeviceCollectionIncludeMembershipRule -InputObject <IResultObject> [-IncludeCollectionName <String>]
[<CommonParameters>]
DESCRIPTION
Cmdleten Get-CMDeviceCollectionIncludeMembershipRule hämtar en eller flera medlemskapsregler för Include Collections för en enhetssamling.
Anteckning
Kör Konfigurationshanteraren cmdlets från Konfigurationshanteraren platsenheten, till exempel PS XYZ:\>
. Mer information finns i Komma igång.
EXAMPLES
Exempel 1: Hämta alla medlemskapsregler för Inkludera samlingar
PS XYZ:\> Get-CMDeviceCollectionIncludeMembershipRule -CollectionName "Device"
Det här kommandot hämtar alla medlemskapsregler för Include Collections för samlingen med namnet Device.
Exempel 2: Hämta regler för att inkludera samlingar med hjälp av pipelinen
PS XYZ:\> Get-CMCollection -Name "Device" | Get-CMDeviceCollectionIncludeMembershipRule
Det här kommandot hämtar enhetssamlingsobjektet med namnet Device och använder pipelineoperatorn för att skicka objektet till Get-CMDeviceCollectionIncludeMembershipRule, som hämtar alla medlemskapsregler för Include Collections för enhetssamlingsobjektet.
PARAMETERS
-CollectionId
Anger ID för en enhetssamling.
Type: String
Parameter Sets: ByIdAndValue, ByIdAndId, ByIdAndName
Aliases: Id
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CollectionName
Anger namnet på en enhetssamling.
Type: String
Parameter Sets: ByNameAndName, ByNameAndValue, ByNameAndId
Aliases: Name
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IncludeCollection
Anger ett enhetssamlingsobjekt som ingår i en medlemskapsregel. Om du vill hämta ett samlingsobjekt använder du cmdleten Get-CMCollection.
Type: IResultObject
Parameter Sets: ByNameAndValue, ByIdAndValue, ByValueAndValue
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IncludeCollectionId
Anger ID för en enhetssamling som ingår i en medlemskapsregel.
Type: String
Parameter Sets: ByNameAndId, ByIdAndId, ByValueAndId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IncludeCollectionName
Anger namnet på en enhetssamling som ingår i en medlemskapsregel.
Type: String
Parameter Sets: ByNameAndName, ByIdAndName, ByValueAndName
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-InputObject
Anger indata för denna cmdlet. Du kan använda den här parametern eller skicka indata till denna cmdlet.
Type: IResultObject
Parameter Sets: ByValueAndValue, ByValueAndId, ByValueAndName
Aliases: Collection
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
CommonParameters
Denna cmdlet har stöd för parametrarna -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction och -WarningVariable. Mer information finns i about_CommonParameters.
INPUTS
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
OUTPUTS
System.Object
ANTECKNINGAR
RELATED LINKS
Introduktion till samlingar i Konfigurationshanteraren
Add-CMDeviceCollectionIncludeMembershipRule