Get-CMDeviceCollectionQueryMembershipRule
장치 컬렉션에 대한 쿼리 멤버 자격 규칙을 얻습니다.
Syntax
Get-CMDeviceCollectionQueryMembershipRule
-CollectionName <String>
[-RuleName <String>]
[<CommonParameters>]
Get-CMDeviceCollectionQueryMembershipRule
-CollectionId <String>
[-RuleName <String>]
[<CommonParameters>]
Get-CMDeviceCollectionQueryMembershipRule
-InputObject <IResultObject>
[-RuleName <String>]
[<CommonParameters>]
Description
이 cmdlet을 사용하여 장치 컬렉션에 대한 하나 이상의 쿼리 멤버 자격 규칙을 얻을 수 있습니다. 쿼리 규칙을 사용하면 일정에 따라 실행되는 쿼리에 따라 컬렉션의 구성원 자격을 동적으로 업데이트할 수 있습니다. 자세한 내용은 Configuration Manager에서 컬렉션을 만드는 방법을 참조하세요.
멤버 자격 규칙에 대한 자세한 내용은 Configuration Manager의 컬렉션 소개를 참조하세요.
참고
Configuration Manager 사이트 드라이브에서 Configuration Manager cmdlet을 실행합니다(예: PS XYZ:\>
). 자세한 내용은 시작을 참조하세요.
예제
예제 1: All Systems 컬렉션에 대한 모든 쿼리 멤버 자격 규칙 사용
이 명령은 All Systems라는 기본 장치 컬렉션에서 쿼리 멤버 자격 규칙을 얻습니다.
Get-CMDeviceCollectionQueryMembershipRule -CollectionName "All Systems"
예제 2: All Systems 컬렉션의 규칙에 대한 쿼리 식 보기
이 명령은 All Systems 컬렉션에서 All Systems라는 쿼리 멤버 자격 규칙을 반환하고 쿼리 식을 반환합니다.
Get-CMDeviceCollectionQueryMembershipRule -CollectionId "SMS00001" -RuleName "All Systems" | Select-Object QueryExpression
매개 변수
-CollectionId
규칙을 받을 장치 컬렉션의 ID를 지정합니다. 이 값은 CollectionID 속성(예: 또는 XYZ00012
SMS00001
)입니다.
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 |
-InputObject
규칙을 받을 장치 컬렉션에 대한 개체를 지정합니다. 이 개체를 얻거나 Get-CMCollection 또는 Get-CMDeviceCollection cmdlet을 사용합니다.
Type: | IResultObject |
Aliases: | Collection |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RuleName
컬렉션에서 얻을 쿼리 규칙의 이름을 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
입력
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
출력
System.Object