I am using the powershell command New-SPSite to create a new instance of a custom site definition in SharePoint 2010. Unfortunately it creates an empty site and none of the featues defined in the onet.xml of the custom site definition seem to get activated. When I create this same site definition through the UI it works fine (features in the onet.xml do get activated). Given below is the set of commands I use
$template = Get-SPWebTemplate "Custom#0"
New-SPSite -Url $SiteUrl –OwnerAlias domain\account –Template $template
Does anyone have any idea as to what is going wrong?
View Complete Post