Preferred Server in Replication Settings

Is there a way to change the preferred server in the replication setting through lotusscript? If yes, could I be provided with a link to a sample code. If not, what other options do i have of implementing the changes without changing the settings on each machine.