Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Adding new Site Collection to existing farm

$
0
0

Hi, 

I am new to SharePoint 2010. We have SharePoint farm:

1. SP-FE1 - SharePoint Front End Server and it has Web sites in IIS - SharePoint Company Default - 80, SharePoint Company My Site - 80, SharePoint Company Reporting - 80;

2. SP-APP1 - SharePoint Front End Server and it has SharePoint Central Administration v4 in IIS.

3. SP-DB1 - database server.

I need to add new Site Collection to Our farm. I have the script for this that I have to use:

------------

$template = Get-SPWebTemplate | Where{ $_.Title -eq “Publishing Portal” }
$web = Get-SPWebApplication -identity "SharePoint Company Default - 80"
$db = "SharePoint_Content_NewSite"
$site = "http://sharepoint.company.local/sites/NewSite"
$name = "NewSite"
$d    = ""
New-SPContentDatabase -Name  $db -WebApplication $web -DatabaseServer "DBServer"
New-SPSite $site  -OwnerAlias "addaccount\SPFarmAccount" -Name $name -Template $template -ContentDatabase $db -Description $d -SecondaryOwnerAlias "addaccount\SPSetupAccount"
Get-SPSite -WebApplication $web

------------

On which server I have to run the script to successfully create NewSite collection?

Thanks


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>