Anybody know how to use Replace with set-QADUser?
Trying to switch email suffix on users through a workflow.
$workflow.ActivityTarget("CreateDev511Account") is the name of the activity target. The workflow creates a user earlier with the old email suffix copied from other domain, but then this script further down the workflow would fix the suffix while keeping the name prior to the @.
Example myname@oldEmail.com to myname@NewEmail.com.
Something like this.
Set-QADUser $workflow.ActivityTarget("CreateDev511Account").get("distinguishedName") -email replace('@oldEmail.com', '@NewEmail.com')
I am not doing the Replace correctly and it is not working for me...