How to masthead switch with relay value change?

We are using manual relay selection and will be migrating endpoints to a separate instance.

I’m considering adding the “_BESClient_RelaySelect_FailoverRelayList” after the action script of the “Switch BES Client Action Site Masthead” task.

Are there any other settings or steps that should be included to ensure that the endpoint reports to the new relay in the new instance?

Look into the following content - https://bigfix.me/fixlet/details/2552

Have you tested it?

I tried to use the script provided on bigfix.me and just added some lines to put the relay values after the masthead switch, but after it detects the new masthead, all the relays settings are cleared.

A workaround that I did was to create a scheduled task to add the desired relay values on the registry, that will run 2mins after the masthead switch.