Why would you want to move the old primary hub to the new domain?
Why would you mot just retire it or format the machine and install a new him.
You could just update the robot.cfg and hub.cfg and remove the security.cfg from the hub folder and restart thed robot... But not sure what that gets you...