Create Configuration Manager Control Activity from Template

AddAutomatedControlActivity (ConsoleTask)

Add Configuration Manager Control Activity Instance from Template

Element properties:

TargetMicrosoft.SystemCenter.ConfigurationManager.ControlActivityProjection
Application
WorkingDirectory
isRequireOutputFalse
AccessibilityPublic
EnabledTrue

Source Code:

<ConsoleTask Target="Microsoft.SystemCenter.ConfigurationManager.ControlActivityProjection" ID="AddAutomatedControlActivity" Accessibility="Public" RequireOutput="false">
<Assembly>SMConsole!SdkDataAccessAssembly</Assembly>
<Handler>Microsoft.EnterpriseManagement.UI.SdkDataAccess.ConsoleTaskHandler</Handler>
<Parameters>
<Argument Name="Assembly">Microsoft.EnterpriseManagement.ServiceManager.GRC.ControlManagement</Argument>
<Argument Name="Type">Microsoft.EnterpriseManagement.ServiceManager.GRC.ControlManagement.CreateControlActivityTaskHandler</Argument>
<Argument>$MPElement[Name="Compliance!Microsoft.SystemCenter.ConfigurationManager.ControlActivity"]$</Argument>
<Argument Name="CustomCreateTask">Microsoft.SystemCenter.ConfigurationManager.ControlActivity</Argument>
</Parameters>
</ConsoleTask>