In System Center 2012 Configuration Manager, you can no longer deploy a secondary site server using Setup (wizard or scripted). Instead, you must use the Configuration Manager console to create a new secondary site. This is less than ideal if you want to deploy several secondary sites or want to automate the process for any other reason.
This project provides a script that will allow you to install a new System Center 2012 Configuration Manager secondary site server without using the Configuration Manager console. The script essentially performs the same actions as the Configuration Manager console, writing changes to the site control information through WMI.
The initial script is provided in VBScript, but I know one of our Configuration Manager MVP's has been working on a Power Shell version that I hope we'll be able to get added in the near future. The initial script is very basic, but should provide enough information to get you started and start some ideas flowing. I've already listed several To Do's in the header of the script, but if you have other ideas, please let me know through the discussion.
Thanks to Jim Dempsey for developing this script !
Disclaimer:
Everything provided as part of this project is provided for informational purposes only. Microsoft and the project's contributor(s) make no warranties, express or implied.
Download the script based tool Via http://cm12secsitescript.codeplex.com/
How to use the script,please refer http://blogs.technet.com/b/keithmayer/archive/2012/05/20/scripted-deployment-of-a-systemcenter-configuration-manager-2012-secondary-site-itcamp-sms.aspx