- Create a new script module named UpdateServiceName which contains the attached PowerShell Policy script.
- Create an Automation Workflow which runs a Script activity and configure it to execute this script. The Function to Run should be set to the updateServiceName function.
NOTE: In medium-to-large environments, it may be necessary to increase the default Automation Workflow timeout beyond the default of five minutes in order for this script to complete successfully.
In the Automation Workflow, expand Workflow options and start conditions and click on Configure
Click on Additional Settings and set the Terminate the workflow if it runs longer than: option to 2 hours (or another appropriate value, if desired).
- In the Active Roles Console, navigate to Configuration/Policies/Workflow
- Create a new Workflow and choose any suitable name. During the creation, specify that it is run On User demand or on a scheduled basis (automation workflow)
- Drag in a Search activity and then double-click on Search for objects
- On the Scope and filter tab change the Find dropdown to Groups
- Set the Retrieve any objects held in the Organizational Unit or container radio button.
- Under Retrieve only these group types: click on Any
- Check off Retrieve only these Group types and Dynamic Group then click on OK | OK
- Drag an Update activity into the Search activity where it is labeled Drop Activities Here and then double-click on the Update activity.
- On the Activity Target tab, change the Define dropdown to Object found by search activity
- On the Target properties tab, change the Add property dropdown to More choices... and type or find the edsaDGOriginatingService attribute and then click OK
- Change the Define dropdown to Text string... and type in the FQDN of the target Active Roles service, then click OK | OK
- Click Save Changes to save the Workflow and optionally use the Workflow options and start conditions button to schedule the Workflow to run regularly.
- Update Scheduled Tasks and either by using a script or manually, as they cannot be updated in an Automation Workflow otherwise.