Cookdown.EasyTune.TimeOfDayGroups.TimeOfDayPropertyPopulator (DataSourceModuleType)

Element properties:

TypeDataSourceModuleType
IsolationAny
AccessibilityPublic
RunAsDefault
OutputTypeSystem.Discovery.Data
CommentPopulates the group's properties

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.TimedPowerShell.DiscoveryProvider Default

Source Code:

<DataSourceModuleType ID="Cookdown.EasyTune.TimeOfDayGroups.TimeOfDayPropertyPopulator" Accessibility="Public" Comment="Populates the group's properties">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="CreatedBy" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="CreatedOn" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ScheduleName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ScheduledGroupName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ScheduledGroupId" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ScheduleData" type="xsd:string"/>
</Configuration>
<ModuleImplementation>
<Composite>
<MemberModules>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.TimedPowerShell.DiscoveryProvider">
<IntervalSeconds>180</IntervalSeconds>
<SyncTime/>
<ScriptName>DiscoverGroupDetails.ps1</ScriptName>
<ScriptBody><Script>
param($sourceId, $managedEntityId, $CreatedBy, $CreatedOn, $ScheduleName, $ScheduledGroupName, $ScheduledGroupId, $ScheduleData)
$api = new-object -comObject 'MOM.ScriptAPI'
$discoveryData = $api.CreateDiscoveryData(0,$sourceId,$managedEntityId)
$instanceGroup = $discoveryData.CreateClassInstance($managedEntityID)
$instanceGroup.AddProperty("$MPElement[Name='Cookdown.EasyTune.TimeOfDayBaseGroup']/CreatedBy$",$CreatedBy)
$instanceGroup.AddProperty("$MPElement[Name='Cookdown.EasyTune.TimeOfDayBaseGroup']/CreatedOn$",$CreatedOn)
$instanceGroup.AddProperty("$MPElement[Name='Cookdown.EasyTune.TimeOfDayBaseGroup']/ScheduleName$",$ScheduleName)
$instanceGroup.AddProperty("$MPElement[Name='Cookdown.EasyTune.TimeOfDayBaseGroup']/ScheduledGroupName$",$ScheduledGroupName)
$instanceGroup.AddProperty("$MPElement[Name='Cookdown.EasyTune.TimeOfDayBaseGroup']/ScheduledGroupId$",$ScheduledGroupId)
$instanceGroup.AddProperty("$MPElement[Name='Cookdown.EasyTune.TimeOfDayBaseGroup']/ScheduleData$",$ScheduleData)
$discoveryData.AddInstance($instanceGroup)
$discoveryData
</Script></ScriptBody>
<Parameters>
<Parameter>
<Name>sourceID</Name>
<Value>$MPElement$</Value>
</Parameter>
<Parameter>
<Name>managedEntityID</Name>
<Value>$Target/Id$</Value>
</Parameter>
<Parameter>
<Name>CreatedBy</Name>
<Value>$Config/CreatedBy$</Value>
</Parameter>
<Parameter>
<Name>CreatedOn</Name>
<Value>$Config/CreatedOn$</Value>
</Parameter>
<Parameter>
<Name>ScheduleName</Name>
<Value>$Config/ScheduleName$</Value>
</Parameter>
<Parameter>
<Name>ScheduledGroupName</Name>
<Value>$Config/ScheduledGroupName$</Value>
</Parameter>
<Parameter>
<Name>ScheduledGroupId</Name>
<Value>$Config/ScheduledGroupId$</Value>
</Parameter>
<Parameter>
<Name>ScheduleData</Name>
<Value>$Config/ScheduleData$</Value>
</Parameter>
</Parameters>
<TimeoutSeconds>60</TimeoutSeconds>
</DataSource>
</MemberModules>
<Composition>
<Node ID="DS"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.Discovery.Data</OutputType>
</DataSourceModuleType>