SharePointRunasAccountDiscovery (Rule)

Element properties:

TargetMicrosoft.SystemCenter.Advisor.Internal.Advisor_Sharepoint
CategoryCustom
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
Scheduler DataSource System.Scheduler Default
StoreCredentialWriteAction WriteAction Microsoft.SystemCenter.Advisor.WriteAction.StoreCredentialWriteAction Default

Source Code:

<Rule ID="SharePointRunasAccountDiscovery" Enabled="true" Target="Microsoft.SystemCenter.Advisor.Internal.Advisor_Sharepoint" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Custom</Category>
<DataSources>
<DataSource ID="Scheduler" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval Unit="Seconds">7200</Interval>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="StoreCredentialWriteAction" TypeID="Microsoft.SystemCenter.Advisor.WriteAction.StoreCredentialWriteAction">
<ActionAccountName>Microsoft.SharePoint.Foundation.2010.AdminAccount</ActionAccountName>
<UserName>$RunAs[Name="Microsoft.SharePoint.Foundation.2010.AdminAccount"]/UserName$</UserName>
<Domain>$RunAs[Name="Microsoft.SharePoint.Foundation.2010.AdminAccount"]/Domain$</Domain>
<Password>$RunAs[Name="Microsoft.SharePoint.Foundation.2010.AdminAccount"]/Password$</Password>
</WriteAction>
</WriteActions>
</Rule>