Get-CMCollectionIncludeMembershipRule
장치 또는 사용자 컬렉션에 대한 포함 멤버 자격 규칙을 얻습니다.
Syntax
Get-CMCollectionIncludeMembershipRule
-CollectionName <String>
[-IncludeCollectionName <String>]
[<CommonParameters>]
Get-CMCollectionIncludeMembershipRule
-CollectionName <String>
-IncludeCollection <IResultObject>
[<CommonParameters>]
Get-CMCollectionIncludeMembershipRule
-CollectionName <String>
-IncludeCollectionId <String>
[<CommonParameters>]
Get-CMCollectionIncludeMembershipRule
-CollectionId <String>
-IncludeCollection <IResultObject>
[<CommonParameters>]
Get-CMCollectionIncludeMembershipRule
-CollectionId <String>
-IncludeCollectionId <String>
[<CommonParameters>]
Get-CMCollectionIncludeMembershipRule
-CollectionId <String>
[-IncludeCollectionName <String>]
[<CommonParameters>]
Get-CMCollectionIncludeMembershipRule
-InputObject <IResultObject>
-IncludeCollection <IResultObject>
[<CommonParameters>]
Get-CMCollectionIncludeMembershipRule
-InputObject <IResultObject>
-IncludeCollectionId <String>
[<CommonParameters>]
Get-CMCollectionIncludeMembershipRule
-InputObject <IResultObject>
[-IncludeCollectionName <String>]
[<CommonParameters>]
Description
이 cmdlet을 사용하여 장치 또는 사용자 컬렉션에 대한 하나 이상의 구성원 자격 규칙을 얻을 수 있습니다. 포함 멤버 자격 규칙에는 규칙이 적용되는 컬렉션에 대한 다른 컬렉션의 구성원이 포함됩니다.
Configuration Manager는 포함된 컬렉션의 구성원 자격이 변경되는 경우 일정에 따라 컬렉션의 구성원을 동적으로 업데이트합니다.
자세한 내용은 Configuration Manager에서 컬렉션을 만드는 방법을 참조하세요.
참고
Configuration Manager 사이트 드라이브에서 Configuration Manager cmdlet을 실행합니다(예: PS XYZ:\>
). 자세한 내용은 시작을 참조하세요.
예제
예제 1: 모든 포함 멤버 자격 규칙 포함
이 명령은 Device라는 컬렉션에 대한 모든 포함 멤버 자격 규칙을 얻습니다.
Get-CMCollectionIncludeMembershipRule -CollectionName "Device"
예제 2: 파이프라인을 사용하여 구성원 자격 규칙 포함
이 명령은 먼저 Get-CMCollection을 사용하여 Users라는컬렉션 개체를 사용합니다. 그런 다음 파이프라인 연산자를 사용하여 개체를 Get-CMCollectionIncludeMembershipRule cmdlet에 전달합니다. 이 cmdlet은 컬렉션 개체에 대한 모든 포함 멤버 자격 규칙을 얻습니다.
Get-CMCollection -Name "Users" | Get-CMCollectionIncludeMembershipRule
매개 변수
-CollectionId
규칙을 받을 컬렉션의 ID를 지정합니다. 이 값은 CollectionID 속성(예: XYZ00012
)입니다. 기본 모음에는 구성원 자격 규칙이 포함되어 있지 않습니다. 이 ID는 사이트 코드로 시작하며 은(는) 아니라 사이트 코드로 SMS
시작됩니다.
Type: | String |
Aliases: | Id |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CollectionName
규칙을 받을 컬렉션의 이름을 지정합니다.
Type: | String |
Aliases: | Name |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IncludeCollection
규칙을 받을 포함된 컬렉션의 개체를 지정합니다. 이 개체를 얻습니다. Get-CMCollection, Get-CMDeviceCollection또는 Get-CMUserCollection cmdlet을 사용합니다.
Type: | IResultObject |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IncludeCollectionId
규칙을 받을 포함된 컬렉션의 ID를 지정합니다. 이 값은 CollectionID 속성(예: XYZ00012
)입니다. 기본 컬렉션을 포함할 수 있으므로 이 값은 사이트 코드 또는 로 시작할 수 SMS
있습니다.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IncludeCollectionName
규칙을 받을 포함된 컬렉션의 이름을 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
규칙을 받을 컬렉션의 개체를 지정합니다. 이 개체를 얻습니다. Get-CMCollection, Get-CMDeviceCollection또는 Get-CMUserCollection cmdlet을 사용합니다.
Type: | IResultObject |
Aliases: | Collection |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
입력
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
출력
System.Object
참고
이 cmdlet은 컬렉션 유형과 관련이 있는 Get-CMDeviceCollectionIncludeMembershipRule 및 Get-CMUserCollectionIncludeMembershipRule과비슷합니다. 이 cmdlet은 장치 또는 사용자 컬렉션에서 작동합니다.
관련 링크
- Remove-CMCollectionIncludeMembershipRule
- Get-CMCollectionDirectMembershipRule
- Get-CMCollectionExcludeMembershipRule
- Get-CMCollectionQueryMembershipRule
- Add-CMDeviceCollectionIncludeMembershipRule
- Add-CMUserCollectionIncludeMembershipRule
- Get-CMDeviceCollectionIncludeMembershipRule
- Get-CMUserCollectionIncludeMembershipRule
- Get-CMCollection
- Get-CMDeviceCollection
- Get-CMUserCollection
- Configuration Manager에서 컬렉션을 만드는 방법