- Author: docteurl
- Published: Jan 13th, 2012
- Category: Administration, Configuration, Database, Servers, SQL
- Comments: Comments Off
-
Tags: article, Docs, favorite, link, links, Microsoft, post, Showcase, Utilities
Don’t try to undersand this post. I’m using it to store my discovery. If you think it might help you. Be my guest.
SQL server Connectivity and SharePoint 2010
How to TroubleShoot connecting to the SQL Server Database Engine
Find active databases used by SharePoint Server 2010
Microsoft Showcases
How does Microsoft IT do it?
Utilities
Mouse without borders
Tags: Configuration, DNS, install, PowerShell, scripts, SharePoint 2010, Site collection, Template, Web Application
Here’s another Special Edition post. How to create a new Web Application in SharePoint 2010 using PowerShell? Just use the following script.
# Load SharePoint 2010 CmdLets Module
Add-PsSnapin Microsoft.SharePoint.PowerShell
# Set Variables
$SiteName = "Contoso Site"
$dns = "intranet.contoso.com"
$url = ("http://" + $dns)
$AppPool = "SharePoint - intranet.contoso.com80"
$Port = 80
$AppPoolServiceAccount = "contoso\srvshpapppool"
$ApplicationPoolAccount = Get-SPManagedAccount $AppPoolServiceAccount
$ContentDatabaseName = "SHP_2010_Intranet_Content"
$DatabaseServer = "MySQLServerName"
$SiteCollName = "Home"
$Template = "STS#0"
$Language = 1033 #Other language required the installation of the Language pack
$Owner = "contoso\myuser"
# WebApplication Creation
New-SPWebApplication -Name $SiteName -HostHeader $SiteHostHeader -url $url -ApplicationPool $AppPool -ApplicationPoolAccount $ApplicationPoolAccount -DatabaseName $ContentDatabaseName -DatabaseServer $DatabaseServer -Port $Port
# Site Collection Provisioning
New-SPSite -Name $SiteName -url $url -OwnerAlias $Owner -Template $SiteCollectionTemplate -Language $Language
Requirements