While troubleshooting customer’s Replication scenarios we often ask for the “script” used to recreate their replication environment. The BLOG posting below by Chad Miller provides a great example of using Power Shell and Replication Management Objects (RMO) to script out Replication.
Click here for link to Quickly Script Out Replication Redux
Written on August 2, 2010 by Chad Miller
Microsoft SQL Server Escalation Services