Symantec Identity Management

Manage AD Groups Membership (and other attr) by Office Location

  • 1.  Manage AD Groups Membership (and other attr) by Office Location

    Posted 06-27-2012 10:45 AM
      |   view attached
    Below is an excellent example to show the flexibility to access many of the common AD attributes and AD Group Memberships from the PX framework in IM.
    This example used a database to store over 1000 office locations and the unique AD attributes inherited from the office location for the new user and modify user use-cases.

    You may replace the JDBC data elements with constants to test.
    Selectively choose and manually enter the PX rule or you may import the below rule:
    Save the complete XML to a text file.
    Then use the IM Management Console / Select an IME / Select "Role and Task Settings / Import the below XML.
    Validate no errors on import / Restart the IME / Log into the IME and validate the PX rule exist.

    Assumption: To use this PX rule, an Active Directory endpoint must exist and is viewable in the IME & have been explored/correlated.




    <?xml version="1.0" encoding="UTF-8"?>
    <ims:ImsTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://imsenvironmentobjects/xsd imsconfig://schema/ImsEnvironmentObjects.xsd" xmlns:ims="http://imsenvironmentobjects/xsd" xmlns:imsrule="http://imsmemberrule/xsd" xmlns:imsscope="http://imsscoperule/xsd" xmlns:imschange="http://imschangeaction/xsd">

    <ManagedObject type="POLICY XPRESS EXPORT" friendlyName="PX-100.01 Enforce AD Groups and Attributes">
    <Attribute name="friendlyName">PX-100.01 Enforce AD Groups and Attributes</Attribute>
    <Attribute name="enabled">true</Attribute>
    <Attribute name="category">AD Policies</Attribute>
    <Attribute name="description">PX-100.01 Enforce AD Groups and Attributes for account creations, transfers and terminations.</Attribute>
    <Attribute name="runOnce">false</Attribute>
    <Attribute name="priority">100</Attribute>
    <Attribute name="type">SUBMITTED_TASK</Attribute>
    <Attribute name="system">false</Attribute>
    <Attribute name="template">PolicyXpress</Attribute>
    <Attribute name="templateData"></Attribute>
    <Attribute name="whenToRun"><![CDATA[<Related>
    <WhenToRun>
    <Attribute name="type">SUBMITTED_TASK</Attribute>
    <Attribute name="step">TASK_COMPLETED</Attribute>
    <Attribute name="eventName">MoveADAccount</Attribute>
    </WhenToRun>
    <WhenToRun>
    <Attribute name="type">SUBMITTED_TASK</Attribute>
    <Attribute name="step">TASK_COMPLETED</Attribute>
    <Attribute name="eventName">CreateADAccount</Attribute>
    </WhenToRun>
    </Related>
    ]]></Attribute>
    <Attribute name="dataElements"><![CDATA[<Related>
    <DataElement>
    <Attribute name="friendlyName">get userprincipalname</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">11</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT OFFICE from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">loginscript</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">12</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT LOGIN_SCRIPT from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">homedirectoryletter</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">13</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT DRIVER_LETTER from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">homedirectory</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">14</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT HOME_SHARE from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">profilepath</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">15</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT PROFILE_PATH from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Get group1new</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">16</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT GROUP1 from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Get group2new</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">17</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT GROUP2 from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Get group3new</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">18</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT GROUP3 from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Get group4new</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">19</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT GROUP4 from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Get group5new</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">20</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT GROUP5 from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">\\</Attribute>
    <Attribute name="elementType">element.type.constant</Attribute>
    <Attribute name="subElement">element.constant.get</Attribute>
    <Attribute name="priority">23</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">\\</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">\</Attribute>
    <Attribute name="elementType">element.type.constant</Attribute>
    <Attribute name="subElement">element.constant.get</Attribute>
    <Attribute name="priority">24</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">\</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">FinalHomeDirectory</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">25</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">FinalHomeDirectory</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">FinalLoginScript</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">26</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">FinalLoginScript</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">cn</Attribute>
    <Attribute name="elementType">element.type.constant</Attribute>
    <Attribute name="subElement">element.constant.get</Attribute>
    <Attribute name="priority">27</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">cn=</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">ou</Attribute>
    <Attribute name="elementType">element.type.constant</Attribute>
    <Attribute name="subElement">element.constant.get</Attribute>
    <Attribute name="priority">28</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">ou=</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">NativeGroup</Attribute>
    <Attribute name="elementType">element.type.constant</Attribute>
    <Attribute name="subElement">element.constant.get</Attribute>
    <Attribute name="priority">29</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">NativeGroup=</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Container_ADSOrgUnit</Attribute>
    <Attribute name="elementType">element.type.constant</Attribute>
    <Attribute name="subElement">element.constant.get</Attribute>
    <Attribute name="priority">30</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">Container_ADSOrgUnit=</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Replace cn in group1new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">31</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Get group1new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cn'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'NativeGroup'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Final replaced string cn ou in group1new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">32</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Replace cn in group1new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'ou'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'Container_ADSOrgUnit'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Replace cn in group2new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">33</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Get group2new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cn'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'NativeGroup'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">FinalTerminalPath</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">75</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">FinalTerminalPath</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Group5new Final string</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">68</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Replace CN in group5new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cap OU'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'Container_ADSOrgUnit'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">OfficeServer_VBscript</Attribute>
    <Attribute name="elementType">element.type.constant</Attribute>
    <Attribute name="subElement">element.constant.get</Attribute>
    <Attribute name="priority">69</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">officeserver01.abc.com</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">HomeDirectory_VBScript</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">70</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">HomeDirectory_VBScript</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">homedrive</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">71</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">homedrive</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">72</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Database group list to add</Attribute>
    <Attribute name="elementType">element.type.iterator</Attribute>
    <Attribute name="subElement">element.iterator.next.value</Attribute>
    <Attribute name="priority">73</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'group1new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'group2new'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'group3new'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'group4new'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'group5new'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Get AD group membership</Attribute>
    <Attribute name="elementType">element.type.accounts.values.by.identifier</Attribute>
    <Attribute name="subElement">element.accounts.attribute.get</Attribute>
    <Attribute name="priority">74</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">groupMembership</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">get terminal_letter</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">21</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT TERM_LETTER from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">get terminalpath</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">22</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT TERM_PATH from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Final replaced string cn ou in group2new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">34</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Replace cn in group2new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'ou'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'Container_ADSOrgUnit'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Replace cn in group3new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">35</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Get group3new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cn'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'NativeGroup'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Final replaced string cn ou in group3new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">36</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Replace cn in group3new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'ou'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'Container_ADSOrgUnit'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Replace cn in group4new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">37</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Get group4new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cn'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'NativeGroup'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Final replaced string cn ou in group4new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">38</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Replace cn in group4new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'ou'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'Container_ADSOrgUnit'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Replace cn in group5new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">39</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Get group5new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cn'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'NativeGroup'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Final replaced string cn ou in group5new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">40</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Replace cn in group5new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'ou'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'Container_ADSOrgUnit'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">AD Account ID</Attribute>
    <Attribute name="elementType">element.type.constant</Attribute>
    <Attribute name="subElement">element.constant.get</Attribute>
    <Attribute name="priority">43</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'domainname'}:{'parse DN'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">EnforceADRedoVar</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">44</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">EnforceADRedoVar</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">get landomain</Attribute>
    <Attribute name="elementType">element.type.user.attribute</Attribute>
    <Attribute name="subElement">element.user.attribute.get</Attribute>
    <Attribute name="priority">45</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landomain</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">usercontainer</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">46</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">usercontainer</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">group1new</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">47</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">group1new</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">landn end Index</Attribute>
    <Attribute name="elementType">element.type.string.searcher</Attribute>
    <Attribute name="subElement">element.string.index.of</Attribute>
    <Attribute name="priority">41</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'landn'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">,OU=</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">parse DN</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.substring</Attribute>
    <Attribute name="priority">42</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'landn'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">3</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'landn end Index'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">landn</Attribute>
    <Attribute name="elementType">element.type.user.attribute</Attribute>
    <Attribute name="subElement">element.user.attribute.get</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">lanid</Attribute>
    <Attribute name="elementType">element.type.user.attribute</Attribute>
    <Attribute name="subElement">element.user.attribute.get</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">lanid</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">idmdisabledstate</Attribute>
    <Attribute name="elementType">element.type.user.attribute</Attribute>
    <Attribute name="subElement">element.user.attribute.get</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">%ENABLED_STATE%</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">domainname</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">domainname</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">oldofficename</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">oldofficename</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">newofficename</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">newofficename</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">userlandn</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">6</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">userlandn</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">nativedomainDN</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">7</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">nativedomainDN</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">JDBC</Attribute>
    <Attribute name="elementType">element.type.constant</Attribute>
    <Attribute name="subElement">element.constant.get</Attribute>
    <Attribute name="priority">8</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">jdbc/office</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Get usercontainer</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">9</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT USER_CONTAINER from OFFICE_DEF where OFFICE_NAME='{'newofficename'}' and DOMAIN_ABRV='{'domainname'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">domainabbreviation</Attribute>
    <Attribute name="elementType">element.type.sql.query.data</Attribute>
    <Attribute name="subElement">element.execute.prepared.statement.get</Attribute>
    <Attribute name="priority">10</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'JDBC'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">select DISTINCT DOMAIN_ABRV from OFFICE_DEF where OFFICE_NAME='{'newofficename'}'</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Replace CN in group2new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">61</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Final replaced string cn ou in group2new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cap CN'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'NativeGroup'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Group2new Final string</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">62</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Replace CN in group2new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cap OU'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'Container_ADSOrgUnit'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Group1new Final string</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">60</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Replace CN in group1new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cap OU'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'Container_ADSOrgUnit'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Replace CN in group3new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">63</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Final replaced string cn ou in group3new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cap CN'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'NativeGroup'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Group3new Final string</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">64</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Replace CN in group3new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cap OU'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'Container_ADSOrgUnit'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Replace CN in group4new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">65</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Final replaced string cn ou in group4new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cap CN'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'NativeGroup'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Group4new Final string</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">66</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Replace CN in group4new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cap OU'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'Container_ADSOrgUnit'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Replace CN in group5new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">67</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Final replaced string cn ou in group5new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cap CN'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'NativeGroup'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">group2new</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">48</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">group2new</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">group4new</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">50</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">group4new</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">group3new</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">49</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">group3new</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">group5new</Attribute>
    <Attribute name="elementType">element.type.variable.value</Attribute>
    <Attribute name="subElement">element.variable.get</Attribute>
    <Attribute name="priority">51</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">group5new</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Re-write Usercontainer value</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">52</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Get usercontainer'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">ou=</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED"/>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Get Index of : from Account ID</Attribute>
    <Attribute name="elementType">element.type.string.searcher</Attribute>
    <Attribute name="subElement">element.string.index.of</Attribute>
    <Attribute name="priority">53</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">:</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Endpoint Name</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.substring</Attribute>
    <Attribute name="priority">54</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">0</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'Get Index of : from Account ID'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">cap OU</Attribute>
    <Attribute name="elementType">element.type.constant</Attribute>
    <Attribute name="subElement">element.constant.get</Attribute>
    <Attribute name="priority">55</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">OU=</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">cap CN</Attribute>
    <Attribute name="elementType">element.type.constant</Attribute>
    <Attribute name="subElement">element.constant.get</Attribute>
    <Attribute name="priority">56</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">CN=</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Re-write Usercontainer value 2</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">57</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Re-write Usercontainer value'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cap OU'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED"/>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">get DN from AD account</Attribute>
    <Attribute name="elementType">element.type.accounts.values.by.identifier</Attribute>
    <Attribute name="subElement">element.accounts.attribute.get</Attribute>
    <Attribute name="priority">58</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">distinguishedName</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">Replace CN in group1new</Attribute>
    <Attribute name="elementType">element.type.string.parser</Attribute>
    <Attribute name="subElement">element.string.manipulation.replace.all</Attribute>
    <Attribute name="priority">59</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">{'Final replaced string cn ou in group1new'}</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'cap CN'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'NativeGroup'}</PxParameter>
    </DataElement>
    <DataElement>
    <Attribute name="friendlyName">msds_userAccountDisabled</Attribute>
    <Attribute name="elementType">element.type.user.attribute</Attribute>
    <Attribute name="subElement">element.user.attribute.get</Attribute>
    <Attribute name="priority">76</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">msds-userAccountDisabled</PxParameter>
    </DataElement>
    </Related>
    ]]></Attribute>
    <Attribute name="entryRules"><![CDATA[<Related>
    <EntryRule>
    <Attribute name="friendlyName">Entry check</Attribute>
    <Attribute name="priority">0</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">msds_userAccountDisabled</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value">TRUE</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">lanid</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    </EntryRule>
    </Related>
    ]]></Attribute>
    <Attribute name="actionRules"><![CDATA[<Related>
    <ActionRule>
    <Attribute name="friendlyName">Set PX variable value</Attribute>
    <Attribute name="priority">0</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set EnforceADRedoVar</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">EnforceADRedoVar</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">test varibale value</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set FinalHomeDirectory</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">FinalHomeDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'\\'}{'homedirectory'}{'\'}{'lanid'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set FinalTerminalPath</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">FinalTerminalPath</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'\\'}{'get terminalpath'}{'\'}{'lanid'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set HomeDirectory_VBScript</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">HomeDirectory_VBScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'homedirectory'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set FinalLoginScript</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">FinalLoginScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'loginscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set nativedomainDN</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">nativedomainDN</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">,EndPoint={'Endpoint Name'},Namespace=ActiveDirectory,Domain=im,Server=Server</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set usercontainer variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">6</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">usercontainer</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'Re-write Usercontainer value 2'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set userlandn</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">7</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">userlandn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'landn'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set homedrive variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">8</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">homedrive</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'homedirectoryletter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">clear lanoffice</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.remove</Attribute>
    <Attribute name="priority">9</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">lanoffice</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'oldofficename'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">clear landomain</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.remove</Attribute>
    <Attribute name="priority">10</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landomain</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'domainname'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set group1new append nativedomainDN</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">11</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">group1new</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'Group1new Final string'}{'nativedomainDN'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set group2new append nativedomainDN</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">12</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">group2new</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'Group2new Final string'}{'nativedomainDN'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set group3new append nativedomainDN</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">13</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">group3new</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'Group3new Final string'}{'nativedomainDN'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set group4new append nativedomainDN</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">14</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">group4new</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'Group4new Final string'}{'nativedomainDN'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set group5new append nativedomainDN</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">15</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">group5new</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'Group5new Final string'}{'nativedomainDN'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Redo Policy</Attribute>
    <Attribute name="actionType">action.name.change.process.flow</Attribute>
    <Attribute name="subAction">action.flow.change.redo.policy</Attribute>
    <Attribute name="priority">16</Attribute>
    </ActionElement>
    </AddActions>
    <RemoveActions>
    <ActionElement>
    <Attribute name="friendlyName">clear landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.remove</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'landn'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">SendMail</Attribute>
    <Attribute name="actionType">action.name.send.mail</Attribute>
    <Attribute name="subAction">action.mail.mail</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">Manager_Tech01@abc.com</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED"/>
    <PxParameter extraInfo="" index="3" uiType="TYPED"/>
    <PxParameter extraInfo="" index="4" uiType="TYPED">LAN Variables</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">&lt;html&gt;&#13;
    &lt;body&gt;&#13;
    &#13;
    AD Account ID: {'AD Account ID'} &lt;br&gt;&#13;
    cap CN: {'cap CN'} &lt;br&gt;&#13;
    cap OU: {'cap OU'} &lt;br&gt;&#13;
    idmdisabledstate: {'idmdisabledstate'} &lt;br&gt;&#13;
    landn: {'landn'} &lt;br&gt;&#13;
    lanid: {'lanid'} &lt;br&gt;&#13;
    cn: {'cn'} &lt;br&gt;&#13;
    Container_ADSOrgUnit: {'Container_ADSOrgUnit'} &lt;br&gt;&#13;
    Database group list to add: {'Database group list to add'} &lt;br&gt;&#13;
    domainabbreviation: {'domainabbreviation'} &lt;br&gt;&#13;
    domainname: {'domainname'} &lt;br&gt;&#13;
    Endpoint Name: {'Endpoint Name'} &lt;br&gt;&#13;
    EnforceADRedoVar: {'EnforceADRedoVar'} &lt;br&gt;&#13;
    stop_variable: {'stop_variable'} &lt;br&gt;&#13;
    Final replaced string cn ou in group1new: {'Final replaced string cn ou in group1new'} &lt;br&gt;&#13;
    Final replaced string cn ou in group2new: {'Final replaced string cn ou in group2new'} &lt;br&gt;&#13;
    Final replaced string cn ou in group3new: {'Final replaced string cn ou in group3new'} &lt;br&gt;&#13;
    Final replaced string cn ou in group4new: {'Final replaced string cn ou in group4new'} &lt;br&gt;&#13;
    Final replaced string cn ou in group5new: {'Final replaced string cn ou in group5new'} &lt;br&gt;&#13;
    FinalHomeDirectory: {'FinalHomeDirectory'} &lt;br&gt;&#13;
    FinalLoginScript: {'FinalLoginScript'} &lt;br&gt;&#13;
    Get AD group membership: {'Get AD group membership'} &lt;br&gt;&#13;
    get landomain: {'get landomain'} &lt;br&gt;&#13;
    get DN from AD account: {'get DN from AD account'} &lt;br&gt;&#13;
    Get group1new: {'Get group1new'} &lt;br&gt;&#13;
    Get group2new: {'Get group2new'} &lt;br&gt;&#13;
    Get group3new: {'Get group3new'} &lt;br&gt;&#13;
    Get group4new: {'Get group4new'} &lt;br&gt;&#13;
    Get group5new: {'Get group5new'} &lt;br&gt;&#13;
    Get Index of : from Account ID: {'Get Index of : from Account ID'} &lt;br&gt;&#13;
    Get usercontainer: {'Get usercontainer'} &lt;br&gt;&#13;
    get userprincipalname: {'get userprincipalname'} &lt;br&gt;&#13;
    Group1new Final string: {'Group1new Final string'} &lt;br&gt;&#13;
    group1new: {'group1new'} &lt;br&gt;&#13;
    Group2new Final string: {'Group2new Final string'} &lt;br&gt;&#13;
    group2new: {'group2new'} &lt;br&gt;&#13;
    Group3new Final string: {'Group3new Final string'} &lt;br&gt;&#13;
    group3new: {'group3new'} &lt;br&gt;&#13;
    Group4new Final string: {'Group4new Final string'} &lt;br&gt;&#13;
    group4new: {'group4new'} &lt;br&gt;&#13;
    Group5new Final string: {'Group5new Final string'} &lt;br&gt;&#13;
    group5new: {'group5new'} &lt;br&gt;&#13;
    homedirectory: {'homedirectory'} &lt;br&gt;&#13;
    homedirectoryletter: {'homedirectoryletter'} &lt;br&gt;&#13;
    HomeDirectory_VBScript: {'HomeDirectory_VBScript'} &lt;br&gt;&#13;
    homedrive: {'homedrive'} &lt;br&gt;&#13;
    JDBC: {'JDBC'} &lt;br&gt;&#13;
    loginscript: {'loginscript'} &lt;br&gt;&#13;
    nativedomainDN: {'nativedomainDN'} &lt;br&gt;&#13;
    NativeGroup: {'NativeGroup'} &lt;br&gt;&#13;
    newofficename: {'newofficename'} &lt;br&gt;&#13;
    oldofficename: {'oldofficename'} &lt;br&gt;&#13;
    ou: {'ou'} &lt;br&gt;&#13;
    profilepath: {'profilepath'} &lt;br&gt;&#13;
    Re-write Usercontainer value 2: {'Re-write Usercontainer value 2'} &lt;br&gt;&#13;
    Re-write Usercontainer value: {'Re-write Usercontainer value'} &lt;br&gt;&#13;
    Replace CN in group1new: {'Replace CN in group1new'} &lt;br&gt;&#13;
    Replace cn in group2new: {'Replace cn in group2new'} &lt;br&gt;&#13;
    Replace cn in group3new: {'Replace cn in group3new'} &lt;br&gt;&#13;
    Replace CN in group4new: {'Replace CN in group4new'} &lt;br&gt;&#13;
    Replace cn in group5new: {'Replace cn in group5new'} &lt;br&gt;&#13;
    OfficeServer_VBscript: {'OfficeServer_VBscript'} &lt;br&gt;&#13;
    userlandn: {'userlandn'} &lt;br&gt;&#13;
    usercontainer: {'usercontainer'} &lt;br&gt;&#13;
    &#13;
    &#13;
    &lt;/body&gt;&#13;
    &lt;/html&gt;</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Account Move to given ou</Attribute>
    <Attribute name="actionType">action.name.accounts.move</Attribute>
    <Attribute name="subAction">action.account.container.move</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'usercontainer'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set lanoffice</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">lanoffice</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'newofficename'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set landomain</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landomain</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'domainname'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set userprincipalname</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">6</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">accountID</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}@{'get userprincipalname'}</PxParameter>
    </ActionElement>
    </RemoveActions>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Adding new groups to AD account</Attribute>
    <Attribute name="priority">0</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">Database group list to add</Attribute>
    <Attribute name="operator">CONTAINS</Attribute>
    <Attribute name="value">NativeGroup</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Add new groups AD</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.add</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">groupMembership</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'Database group list to add'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 1</Attribute>
    <Attribute name="priority">15</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set Homedirectory</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalHomeDirectory'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set HomeDirectoryLetter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'homedirectoryletter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set loginscript</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">logonScript</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalLoginScript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set profilepath</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">profile</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'profilepath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set home permission</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'HomeDirectory_VBScript'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">6</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 2</Attribute>
    <Attribute name="priority">15</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set homedirectory</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalHomeDirectory'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set homedriveletter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'homedirectoryletter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set loginscript</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">logonScript</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalLoginScript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set home permissions</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'HomeDirectory_VBScript'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 3</Attribute>
    <Attribute name="priority">15</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set homedirectory</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalHomeDirectory'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set homedriveletter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'homedirectoryletter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set profilepath</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">profile</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'profilepath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set home permission</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'HomeDirectory_VBScript'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 4</Attribute>
    <Attribute name="priority">15</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set profilepath</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">profile</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'profilepath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set loginscript</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">logonScript</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalLoginScript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 5</Attribute>
    <Attribute name="priority">15</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set homedirectory</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalHomeDirectory'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set homedriveletter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'homedirectoryletter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set home permission</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'HomeDirectory_VBScript'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 6</Attribute>
    <Attribute name="priority">15</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set loginscript</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">logonScript</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalLoginScript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 7</Attribute>
    <Attribute name="priority">15</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set loginscript</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">logonScript</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalLoginScript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 8</Attribute>
    <Attribute name="priority">15</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 11</Attribute>
    <Attribute name="priority">25</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set Homedirectory</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalHomeDirectory'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set HomeDirectoryLetter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'homedirectoryletter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set loginscript</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">logonScript</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalLoginScript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set profilepath</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">profile</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'profilepath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Path</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalTerminalPath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Letter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">6</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDirDrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'get terminal_letter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set home permission</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">7</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'HomeDirectory_VBScript'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set terminal permissions</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">8</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get terminalpath'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">9</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 12</Attribute>
    <Attribute name="priority">25</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set homedirectory</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalHomeDirectory'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set homedriveletter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'homedirectoryletter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set loginscript</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">logonScript</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalLoginScript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Path</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalTerminalPath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Letter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDirDrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'get terminal_letter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set home permissions</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'HomeDirectory_VBScript'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set terminal permissions</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">6</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get terminalpath'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">7</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">8</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 13</Attribute>
    <Attribute name="priority">25</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set homedirectory</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalHomeDirectory'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set homedriveletter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'homedirectoryletter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set profilepath</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">profile</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'profilepath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Path</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalTerminalPath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Letter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDirDrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'get terminal_letter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set home permission</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'HomeDirectory_VBScript'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set terminal permissions</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">6</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get terminalpath'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">7</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">8</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 14</Attribute>
    <Attribute name="priority">25</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set profilepath</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">profile</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'profilepath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set loginscript</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">logonScript</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalLoginScript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Path</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalTerminalPath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Letter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDirDrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'get terminal_letter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set terminal permissions</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get terminalpath'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">6</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 15</Attribute>
    <Attribute name="priority">25</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set homedirectory</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalHomeDirectory'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">Set homedriveletter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">homedrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'homedirectoryletter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Path</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalTerminalPath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Letter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDirDrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'get terminal_letter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set home permission</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'HomeDirectory_VBScript'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set terminal permissions</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get terminalpath'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">6</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">7</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 16</Attribute>
    <Attribute name="priority">25</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set loginscript</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">logonScript</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalLoginScript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Path</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalTerminalPath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Letter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDirDrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'get terminal_letter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set terminal permissions</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get terminalpath'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 17</Attribute>
    <Attribute name="priority">25</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">Set loginscript</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">logonScript</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalLoginScript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Path</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalTerminalPath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Letter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDirDrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'get terminal_letter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set terminal permissions</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get terminalpath'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">5</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    <ActionRule>
    <Attribute name="friendlyName">Set other variables 18</Attribute>
    <Attribute name="priority">25</Attribute>
    <Attribute name="description"/>
    <Conditions>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_CONTAINS</Attribute>
    <Attribute name="value">User Transfer</Attribute>
    </Condition>
    <Condition>
    <Attribute name="dataElement">EnforceADRedoVar</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">landn</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">newofficename</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectory</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">homedirectoryletter</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">profilepath</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">loginscript</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">stop_variable</Attribute>
    <Attribute name="operator">EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    <Condition>
    <Attribute name="dataElement">get terminalpath</Attribute>
    <Attribute name="operator">NOT_EQUALS</Attribute>
    <Attribute name="value"/>
    </Condition>
    </Conditions>
    <AddActions>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Path</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">0</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDir</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'FinalTerminalPath'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set Terminal Letter</Attribute>
    <Attribute name="actionType">action.name.set.accounts.data</Attribute>
    <Attribute name="subAction">action.ace.accounts.set</Attribute>
    <Attribute name="priority">1</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">ActiveDirectory</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'AD Account ID'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="SELECTED">wtsHomeDirDrive</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'get terminal_letter'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set terminal permissions</Attribute>
    <Attribute name="actionType">action.name.java</Attribute>
    <Attribute name="subAction">action.java.main</Attribute>
    <Attribute name="priority">2</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">com.ca.custom.java.remoteprocessScript</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get terminalpath'}</PxParameter>
    <PxParameter extraInfo="" index="3" uiType="TYPED">{'domainname'}</PxParameter>
    <PxParameter extraInfo="" index="4" uiType="TYPED">{'lanid'}</PxParameter>
    <PxParameter extraInfo="" index="5" uiType="TYPED">{'OfficeServer_VBscript'}</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">stop_variable</Attribute>
    <Attribute name="actionType">action.name.set.string.variable</Attribute>
    <Attribute name="subAction">action.string.variable.value</Attribute>
    <Attribute name="priority">3</Attribute>
    <PxParameter extraInfo="" index="1" uiType="TYPED">stop_variable</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">stop_variable to stop policy execution second</PxParameter>
    </ActionElement>
    <ActionElement>
    <Attribute name="friendlyName">set landn</Attribute>
    <Attribute name="actionType">action.name.set.user.values</Attribute>
    <Attribute name="subAction">action.user.attribute.add</Attribute>
    <Attribute name="priority">4</Attribute>
    <PxParameter extraInfo="" index="1" uiType="SELECTED">landn</PxParameter>
    <PxParameter extraInfo="" index="2" uiType="TYPED">{'get DN from AD account'}</PxParameter>
    </ActionElement>
    </AddActions>
    <RemoveActions/>
    </ActionRule>
    </Related>
    ]]></Attribute>
    <PropertyDict name="Exceptions">
    <Property name="exception.category.allowed">exception.behaviour.fail_event</Property>
    <Property name="exception.category.validation">exception.behaviour.fail_policy</Property>
    </PropertyDict>
    </ManagedObject>
    </ims:ImsTemplate>

    Attachment(s)