NetIQ

I want to catch results of custom psexecute commands generated by Subscriber command transformation policies.

I want to add cusotm operation data to those commands that i generate and I want to catch the status of the those commands including
operation data that was submitted initially with request:

command example:

<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.5.3.0">DirXML</product>
<contact>NetIQ Corporation</contact>
</source>
<input>
<modify class-name="User" qualified-src-dn="{usercontext}" src-dn="{usercontext}" src-entry-id="34152">
<association>{association}</association>
<modify-attr attr-name="psexecute">
<remove-all-values/>
<add-value>
<value type="string">Set-Mailbox -Identity "{usercontext}" -CustomAttribute4 "bingo!"</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>


commadn output
Output:


<nds dtdversion="2.0" ndsversion="8.x">
<source>
<product build="20170326_1258" instance="Azure AD" version="5.0.0.0">Identity Manager Driver for Azure AD and Office 365</product>
<contact>NetIQ Corporation</contact>
</source>
<output>
<status event-id="0" level="success"/>
</output>
</nds>


How to add cutstom operation to data to that comamnd and catch the status and with its operation data??


My rule on the subscriber command transformaiton looks like this:


<rule>
<description>Test of psexecute</description>
<conditions>
<and>
<if-class-name mode="nocase" op="equal">User</if-class-name>
</and>
</conditions>
<actions>
<do-set-dest-attr-value direct="true" name="psexecute">
<arg-value type="string">
<token-text xml:space="preserve">Set-Mailbox -Identity "{usercontext}" -CustomAttribute4 "bingo!"</token-text>
</arg-value>
</do-set-dest-attr-value>
</actions>
</rule>


Regards,

Maqsood.