M365 Supplemental - Configure MailFlow

M365SMAIL.ConfigureMailFlow.AgentTask (Task)

This task will write registry values to configure M365 MailFlow for discovery on the watcher node. A value of -1 will cause the parameter to be ignored and will not overwrite an existing parameter. DeleteConfiguration: Set True to undiscover this component. To keep any existing configuration from being changed, use -1. Otherwise the configuration will get overwritten with the parameter defaults.

Element properties:

TargetM365SL.WatcherNode
AccessibilityPublic
CategoryCustom
EnabledTrue
RemotableFalse
Timeout60
Comment.

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction M365SMAIL.Configure.MailFlow.POSH.WA Default

Source Code:

<Task ID="M365SMAIL.ConfigureMailFlow.AgentTask" Accessibility="Public" Target="M365SL!M365SL.WatcherNode" Enabled="true" Timeout="60" Remotable="true" Comment=".">
<Category>Custom</Category>
<WriteAction ID="WA" TypeID="M365SMAIL.Configure.MailFlow.POSH.WA">
<DeleteConfiguration>false</DeleteConfiguration>
<M365_to_M365_IntervalSeconds>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/IntervalSeconds$</M365_to_M365_IntervalSeconds>
<M365_to_M365_ReceiveRetry_WaitSeconds>10</M365_to_M365_ReceiveRetry_WaitSeconds>
<M365_to_M365_ReceiveTimeoutSeconds>300</M365_to_M365_ReceiveTimeoutSeconds>
<M365_TotalDurationCriticalSeconds>120</M365_TotalDurationCriticalSeconds>
<M365_TotalDurationWarningSeconds>60</M365_TotalDurationWarningSeconds>
<Exchange_SenderEmailAddress/>
<Exchange_SenderPassword/>
<Exchange_ReceiverEmailAddress/>
<Exchange_ReceiverPassword/>
<Exchange_ReceiveTimeoutSeconds>300</Exchange_ReceiveTimeoutSeconds>
<ExchangeURL/>
<ExchangeWebServicesPath>C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.dll</ExchangeWebServicesPath>
<M365_to_Exch_IntervalSeconds>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/IntervalSeconds$</M365_to_Exch_IntervalSeconds>
<M365_to_Exch_ReceiveRetry_WaitSeconds>10</M365_to_Exch_ReceiveRetry_WaitSeconds>
<Exch_to_M365_IntervalSeconds>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/IntervalSeconds$</Exch_to_M365_IntervalSeconds>
<Exch_to_M365_ReceiveRetry_WaitSeconds>10</Exch_to_M365_ReceiveRetry_WaitSeconds>
<Exch_TotalDurationCriticalSeconds>180</Exch_TotalDurationCriticalSeconds>
<Exch_TotalDurationWarningSeconds>120</Exch_TotalDurationWarningSeconds>
<M365_ClientID>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/M365_ClientID$</M365_ClientID>
<M365_ClientSecret>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/M365_ClientSecret$</M365_ClientSecret>
<M365_ReceiverEmailAddress/>
<M365_ReceiverPassword/>
<M365_SenderEmailAddress/>
<M365_SenderPassword/>
<TenantName>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/TenantName$</TenantName>
<MgmtGroupRegKey>$Target/Property[Type="M365SL!M365SL.WatcherNode"]/MgmtGroupRegKey$</MgmtGroupRegKey>
<PoshLibraryPath/>
<WorkflowName>M365SMMFM.ConfigureMailFlow.AgentTask</WorkflowName>
<WriteActionTimeoutSeconds>60</WriteActionTimeoutSeconds>
<WriteToEventLog>true</WriteToEventLog>
</WriteAction>
</Task>