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