Get-CMCollectionQueryMembershipRule
디바이스 또는 사용자 컬렉션에 대한 쿼리 멤버 자격 규칙을 가져옵니다.
Syntax
Get-CMCollectionQueryMembershipRule
-CollectionName <String>
[-RuleName <String>]
[<CommonParameters>]
Get-CMCollectionQueryMembershipRule
-CollectionId <String>
[-RuleName <String>]
[<CommonParameters>]
Get-CMCollectionQueryMembershipRule
-InputObject <IResultObject>
[-RuleName <String>]
[<CommonParameters>]
Description
이 cmdlet을 사용하여 디바이스 또는 사용자 컬렉션에 대한 하나 이상의 쿼리 멤버 자격 규칙을 가져옵니다. 쿼리 규칙을 사용하면 일정에 따라 실행되는 쿼리에 따라 컬렉션의 멤버 자격을 동적으로 업데이트할 수 있습니다. 자세한 내용은 Configuration Manager 컬렉션을 만드는 방법을 참조하세요.
멤버 자격 규칙에 대한 자세한 내용은 Configuration Manager 컬렉션 소개를 참조하세요.
참고
Configuration Manager 사이트 드라이브에서 Configuration Manager cmdlet을 실행합니다(예: PS XYZ:\>
). 자세한 내용은 시작을 참조하세요.
예제
예제 1: All Systems 컬렉션에 대한 모든 쿼리 멤버 자격 규칙 가져오기
이 명령은 모든 시스템이라는 기본 디바이스 컬렉션에서 쿼리 멤버 자격 규칙을 가져옵니다.
Get-CMCollectionQueryMembershipRule -CollectionName "All Systems"
예제 2: 모든 사용자 컬렉션의 규칙에 대한 쿼리 식 보기
이 명령은 모든 사용자 컬렉션에서 All Users라는 쿼리 멤버 자격 규칙을 가져오고 쿼리 식을 반환합니다.
Get-CMCollectionQueryMembershipRule -CollectionId "SMS00002" -RuleName "All Users" | Select-Object QueryExpression
매개 변수
-CollectionId
규칙을 가져올 컬렉션의 ID를 지정합니다. 이 값은 CollectionID 속성(예 XYZ00012
: 또는 SMS00001
)입니다.
Type: | String |
Aliases: | Id |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CollectionName
규칙을 가져올 컬렉션의 이름을 지정합니다.
Type: | String |
Aliases: | Name |
Position: | Named |
Default value: | None |
Required: | True |
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 |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RuleName
컬렉션에서 가져올 쿼리 규칙의 이름을 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
입력
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
출력
System.Object
참고
이 cmdlet은 컬렉션 유형과 관련된 Get-CMDeviceCollectionQueryMembershipRule 및 Get-CMUserCollectionQueryMembershipRule과 유사합니다. 이 cmdlet은 디바이스 또는 사용자 컬렉션에서 작동합니다.
관련 링크
- Remove-CMCollectionQueryMembershipRule
- Get-CMCollectionDirectMembershipRule
- Get-CMCollectionExcludeMembershipRule
- Get-CMCollectionIncludeMembershipRule
- Add-CMDeviceCollectionQueryMembershipRule
- Add-CMUserCollectionQueryMembershipRule
- Get-CMDeviceCollectionQueryMembershipRule
- Get-CMUserCollectionQueryMembershipRule
- Get-CMCollection
- Get-CMDeviceCollection
- Get-CMUserCollection
- Configuration Manager 컬렉션을 만드는 방법
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기