Short but sweet post.  So you’ve created your Web Template and need to deploy as part of your overall deployment scripts.  How do you include this?

The Web Template in this case is a User Solution (Sandbox Solution), and this is how you go about deploying it.  Learn more on the available parameters at http://technet.microsoft.com/en-us/library/ff607715.aspx


  
  
#Install Web Template
Add-SPUserSolution -Site $intraneturl -LiteralPath (resolve-path "Web Templates\WebTemplateName.wsp").Path -Confirm:$false
Install-SPUserSolution -Identity "WebTemplateName.wsp" -Site $siteUrl -Confirm:$false

 

This will also activate it 🙂
-Oscar