지정된 조건에 따라 Configuration Manager 작업을 표시할 수 있습니다. 조건은 다음으로 정의됩니다.
정규식
메서드 호출
보안 권한
정규식
정규식을 사용하면 문자열 기반 검색 패턴을 적용할 수 있습니다. 다음 요소는 작업에 대한 정규식을 지정합니다.
| 요소 | 설명 |
|---|---|
MatchPattern |
검색할 패턴을 지정합니다. |
MatchValueToTest |
비교할 값을 지정합니다. 다음 ##Sub 값은 선택한 개체의 속성입니다. 속성은 지연이 아니어야 하며 select 개체에 있어야 합니다. |
다음 작업은 지정된 패턴(MS_ASYNC_RAS)이 선택한 개체의 AddressType 속성과 일치할 때마다 대화 상자를 표시합니다.
<ActionDescription ActionVerb="Properties" Class="ShowDialog"> <ShowOn> <string>DefaultContextualTab</string> <!-- Show on Ribbon --> <string>ContextMenu</string> <!-- Show on Context Menu --> </ShowOn> <MatchPattern>MS_ASYNC_RAS</MatchPattern>
<MatchValueToTest>##SUB:AddressType##</MatchValueToTest>
<DialogId>AsyncRasSenderAddress</DialogId></ActionDescription>
메서드 호출
메서드 호출의 결과에 따라 작업을 표시할 수 있습니다.
ActionDescription 자식 요소는 ActionStateAssembly 호출할 어셈블리, 형식 및 메서드를 정의합니다. 메서드가 를 반환 true하면 작업이 표시됩니다. 메서드가 를 반환 false하면 작업이 숨겨집니다.
다음 XML은 어셈블리 AdminUI.Addresses.dll 라는 EnableDecrementPriorityMenu 메서드를 호출합니다.
<ActionDescription>
<ShowOn>
<string>DefaultContextualTab</string> <!-- Show on Ribbon --> <string>ContextMenu</string><!-- Show on Context Menu --> </ShowOn> <ActionStateAssembly>
<Assembly>AdminUI.Addresses.dll</Assembly> <Type>Microsoft.ConfigurationManagement.AdminConsole.Addresses.AddressUtilityClass</Type>
<Method>EnableDecrementPriorityMenu</Method> </ActionStateAssembly>
</ActionDescription>
메서드는 다음 서명을 사용하여 .NET Framework 어셈블리에서 구현됩니다.
public static bool EnableDecrementPriority(object sender, ScopeNode scopeNode, ActionDescription action, ResultObjectBase resultObject)
.NET Framework 어셈블리에서 메서드를 호출하는 방법에 대한 자세한 내용은 assemblyType 작업 Configuration Manager 참조하세요.
보안 권한
선택한 개체 또는 개체 클래스에 보안 제한을 적용하여 작업의 가용성을 제한할 수 있습니다.
개체 인스턴스 권한
선택한 개체에 필요한 권한을 적용하여 작업의 가용성을 제한할 수 있습니다. 다음 XML 예제에서 다음 요소는 선택한 개체에 대한 instance 권한을 지정합니다.
| 요소 | 설명 |
|---|---|
InstancePermissions |
instance 권한 목록의 부모 요소입니다. |
SecurityFlagsDetailDescription |
작업이 작동하려면 설정해야 하는 보안 플래그입니다. |
다음 XML 예제 Delete 에서는 사용자가 수정 권한이 있는 경우에만 선택한 개체에 대한 작업을 사용할 수 있습니다.
<ActionDescription ActionVerb="Delete" Class="Default" SelectionMode="Both" InstanceDependsOn="SMS_Site">
<ShowOn> <string>DefaultContextualTab</string> <!-- Show on Ribbon --> <string>ContextMenu</string> <!-- Show on Context Menu --></ShowOn><InstancePermissions><SecurityFlagsDetailDescription BitName="Modify" BitValue="2" DependsOn="1" /></InstancePermissions>
</ActionDescription>
개체 클래스 사용 권한
요소를 사용하여 ClassPermissions 작업에 필요한 개체 클래스 권한을 설정할 수 있습니다.
ActionSecurityDescription 은 개체 클래스 및 해당 개체 클래스에 필요한 권한을 설명합니다. 다음 XML 예제에서는 SMS 컬렉션에 필요한 권한을 설명합니다.
<ClassPermissions> <ActionSecurityDescription ClassObject="SMS_Collection" RequiredPermissions="1280" />
</ClassPermissions>
사용 권한 값
RequiredPermissions 특성에 대한 권한 값은 SecurityFlagsDetailDescription 클래스와 동일하며 다음과 같습니다.
| 사용 권한 | 값 | 에 따라 다름 |
|---|---|---|
| 읽기 | 1 | 없음 |
| 수정 | 2 | 1 |
| 삭제 | 4 | 1 |
| 배포 | 8 | 1 |
| CreateChild | 16 | 1 |
| RemoteControl | 32 | 없음 |
| Advertise | 64 | 1 |
| ModifyResource | 128 | 1 |
| 관리하다 | 256 | 7 |
| DeleteResource | 512 | 1 |
| 만들기 | 1024 | 없음 |
| ViewCollectedFiles | 2048 | 1 |
| ReadResource | 4096 | 1 |
| 대리인 | 8192 | 없음 |
| 미터 | 16384 | 1 |
| ManageSqlCommand | 32768 | 1 |
| ManageStatusFilter | 65536 | 1 |
| ManageFolder | 131072 | 1 |
| NetworkAccess | 262144 | 1 |
| ImportMachineEntry | 524288 | 1 |
| CreateMediaCertificate | 1048576 | 1 |
| ModifyCollectionSetting | 2097152 | 1 |
| ManageOsdCertificate | 4194304 | 1 |
참고 항목
Configuration Manager ActionsConfiguration Manager Action XMLConfiguration Manager AssemblyType ActionConfiguration Manager 실행 파일 작업Configuration Manager 그룹 작업Configuration Manager 보고서 작업Configuration Manager ShowDialog 작업Configuration Manager 작업을 만드는 방법Configuration Manager 노드 GUID를 찾는 방법