Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question
add comment

3 Answers 3

simply use Add-SPSolution and Install-SPSolution.

if it's sandboxed, use instead Add-SPUserSolution and Install-SPUserSolution.

share|improve this answer
    
with that i will have to activate in every site collection ? right ? Then what is use of "install-spwebtemplate" cmdlet ? –  Monica Jagani Jun 20 '11 at 10:14
    
a site template is used for new sites, not existings. I don't know what is the purpose of install-spwebtemplate –  Steve B Jun 20 '11 at 10:15
    
wondering if it's for legacy template support (as it's waiting for cab files) –  Steve B Jun 20 '11 at 10:17
add comment

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.

share|improve this answer
add comment

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.

share|improve this answer
    
patel: in this case, the help is useless; 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 –  Steve B Jun 20 '11 at 18:54
    
If you understand the word "site template" its not that useless. –  Ashish Patel Jun 20 '11 at 19:11
    
patel : i tried "Get-Help install-spwebtemplate -full" command but still not able to understand as rightly said by @steve b –  Monica Jagani Jun 21 '11 at 3:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.