I want to install site template in SharePoint 2010. Basically i want to know how use install-spwebtemplate
wsp name : SPT_SiteTemplate.wsp Name : SPT_SiteTemplate
simply use Add-SPSolution and Install-SPSolution.
if it's sandboxed, use instead Add-SPUserSolution and Install-SPUserSolution.
In SP2010 you can create web templates that can be deployed as either farm or site scoped features. Install-spwebtemplate
is used for legacy templates so this is not what you should use (confusing, i know, especially since get-spwebtemplates
works for showing installed templates)
If you create your custom web template as a sandboxed solution you can upload your solution to your site either using UI or by using add-spusersolution
. Then you activate your solution and activate your feature, and your web template should now show when creating new sites.
Alternatively you can create a farm solution and a farm scoped feature. This is added using Add-spsolution
and feature must me activated under farm solutions in central administration.
More info on creating custom web templates in visual studio here.
Another option is to save your site as a template and upload that directly as with sandboxed solutions.
Use "Get-Help install-spwebtemplate -full" command to find out usage of the command along with examples. This is true for any command in general.
The Install-SPWebTemplate cmdlet installs the given site template using the name provided (title) as the unique ID.
is not detailling what is the purpose of the command