How can I add an extra windows authentication entry for multiple users

Over the next 6 months I will need to change the domain for the Windows authentication entry for users twice due to a company divestiture.

I know I can add a second entry manually but is there a way to automate the process?