4

I'm trying to create a template that I'm going to need to replicate several times. Unfortunately there are sub-sites beneath the main site on the template that are complicating things. From what I can tell it's not possible to save subsites inside of templates.

Is there an easy way to do this with PowerShell?

1

Yes. It is possible using PowerShell. First, create site templates for the sub-sites. Then use the New-SPWeb cmdlet to create the parent, then the sub-sites from the templates. Keep in mind you must use the GUID of the template.

Keep in mind that site templates are only one of many options for provisioning new sites. The new WebTemplate method in 2010 may be useful to you.

0

No.

From my understanding of the question, the author wants to know if we can save a site template containing it's subsites.

There are many workarounds (backup, export, individual templates), and I believe Tom has layed down some very good approach(es).

However, site templates are saved independently for each site (web), and not even PowerShell can overcome that, hence, my different answer.

As usual, some references:

http://social.msdn.microsoft.com/Forums/en-US/f167d3ac-afd4-407c-8108-2ae896d52752/how-to-save-site-template-with-subsites?forum=sharepointgeneralprevious

Move root site collection

Anyway, I won't feel terribly disappointed if this answer is not selected.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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