Thursday 25 July 2013

Creating site collection in SharePoint 2013 using PowerShell.


Earlier we discussed about creating web application in SharePoint 2013 using Power Shell.

This will explain more about creating site collection in SharePoint 2013 and SharePoint 2010 using Power Shell.

To get the Power Shell script for creating web application please click here



For creating Site Collection  in SP 2013

The first line Get-SPWebTemplate will display the list of  site templates code using that you can create your new site collection with the template. You need to mention the template code in the command of creation of site collection. Please refer the below screen shot for more info. This template will contain codes for SP2013 and SP 2010 as well.




Get-SPWebTemplate

$template = Get-SPWebTemplate "BLOG#0"
New-SPSite -Url "https://shivashankaran" -OwnerAlias "scs\shiva4224" -Template $template

No comments:

Post a Comment

Rescan Disk Option Greyed Out | New Disks Not visible on Disk management | Update-HostStorageCache

  Recently I have added several LUN from NetApp Storage to Hyper-V servers. But in the disk management I couldn't see those new LUN. Exi...