Creating new SharePoint sites and site collections using PowerShell is extremely easy in SharePoint 2010. Just follow these few quick steps:
- Launch the SharePoint 2010 Management Shell
- Get a listing of all the site templates
Get-SPWebTemplate
- Select the template you want to instantiate
$template = Get-SPWebTemplate "[TEMPLATENAME]"
- Create the new site
New-SPSite –URL [URL] –owneralias domain\username –template $template
And that’s all there is too it.
References: