Can you force an ARS workflow based on a change to run on a specific admin server?

I'm using the handle changes from dir sync control feature of provisioning policies to update a virtual attribute and then using that change to trigger a workflow.

This is all working great.

The issue I am having is since I have 8 ARS admin servers this workflow can be triggered as many as 8 times. I have coded around this problem, but I am trying to figure out how to make this workflow run only once.

I don't see the option to force a workflow to run on a specific admin server, but I thought it might be worth a shot to ask. 

Parents
  • If you only want the script to execute on a specific service, you can query the name of the service running the script and then return if it doesn't match your desired job server.

    Get the name of the service running the script using this method:

    $AR = [ADSI]"EDMS://rootDSE"

    $ARServer = $AR.psbase.InvokeGet("edsvaServiceFullDns")

    Then, run something like this:

    if($ARServer -ne "JobServer.domain.local")

    {

      return

    }

Reply
  • If you only want the script to execute on a specific service, you can query the name of the service running the script and then return if it doesn't match your desired job server.

    Get the name of the service running the script using this method:

    $AR = [ADSI]"EDMS://rootDSE"

    $ARServer = $AR.psbase.InvokeGet("edsvaServiceFullDns")

    Then, run something like this:

    if($ARServer -ne "JobServer.domain.local")

    {

      return

    }

Children