In this recipe, we'll give full attention to one of the most common tasks administrators and developers need to perform together when a new solution is deployed to client environments: provisioning of site hierarchy. To keep this recipe within the scope of actual site provisioning and not custom site template development, we will be provisioning a site hierarchy of team sites. In your scenario, you are very likely to need to provision site hierarchy of sites deriving from a custom site template. The template will be developed separately and the PowerShell script we'll create here will not change regardless of the templates we're provisioning.
In fact, the PowerShell script we'll create is going to use an XML file where developers will specify the order of the site provisioning and site template used, as well any features activated on the site once it's created.
At the end of this recipe, you will have a reusable script which you can...