title: Scripting Log Shipping Automation
body: <p>Is it possible to script All of the Log Shipping configuration?</p>
  
  <p>For example: I need to write a job that initiates Log Shipping from two databases from server A to server B.</p>
  
  <p>The job will run on Server A.</p>
  
  <p>By the way both are SQL 2008 R2 Enterprise.</p>
  
  <p>There's a share on server A.
  \serverA\Log</p>
  
  <p>I Believe this is all that is needed.
  Is it possible to do it just by script?
  Do I have to initialize the databases or is there a option like SSMS to auto initialize?</p>
  
  <p>Will I have to create the jobs manually? or is it configured in a way that creates the jobs and manages them?</p>
  
  <p>Is it scriptable? Has anyone done anything like this?
  Does any one have a script to do this?</p>
  
  <p>Thanks in advance.</p>