rilpoint_mw113

Enterprise Portal Initial Configuration

Main Project Page
As Built Part 1

Contents

Introduction

Ensure that all steps in As Built Part 1 are completed first. If so, we have already:

  • Installed SharePoint Server 2010 on all servers (including prerequisites, software, and updates).
  • Configured Central Administration (including the Configuration Database, CA Content Database, and CA Web Application)
  • Added all SharePoint servers to the Farm and they appear in Central Administration (Under Servers in Farm).
  • Configured SharePoint Foundation Search and started the service on the CA Host.

The following will guide you through the rest of the basic SharePoint setup.

Reference: http://technet.microsoft.com/en-us/library/cc303418.aspx

Configure Search Service

In this section, we will configure SharePoint Server Search (earlier, we only configured SharePoint Foundation Search).

  1. Create a PowerShell script file (create_search.ps1) by copying the contents below.
  2. Modify the $SVCAcct variable depending on the environment (DOMAIN\SP10_Search for Production)
Add-PSSnapin Microsoft.SharePoint.PowerShell
# http://blogs.msdn.com/russmax/archive/2009/10/20/sharepoint-2010-configuring-search-service-application-using-powershell.aspx
# 1.Setting up some initial variables.
write-host 1.Setting up some initial variables.
$SSAName = "Company_Search"
$SVCAcct = "DOMAIN\SP10_Search"
$SSI = get-spenterprisesearchserviceinstance -local
$err = $null

# Start Services search services for SSI
write-host Start Services search services for SSI
Start-SPEnterpriseSearchServiceInstance -Identity $SSI

# 2.Create an Application Pool.
write-host 2.Create an Application Pool.
$AppPool = new-SPServiceApplicationPool -name $SSAName"-AppPool" -account $SVCAcct

# 3.Create the SearchApplication and set it to a variable
write-host 3.Create the SearchApplication and set it to a variable
$SearchApp = New-SPEnterpriseSearchServiceApplication -Name $SSAName -applicationpool $AppPool -databasename $SSAName"_AdminDB"

#4 Create search service application proxy
write-host 4 Create search service application proxy
$SSAProxy = new-spenterprisesearchserviceapplicationproxy -name $SSAName"ApplicationProxy" -Uri $SearchApp.Uri.AbsoluteURI

# 5.Provision Search Admin Component.
write-host 5.Provision Search Admin Component.
set-SPenterprisesearchadministrationcomponent -searchapplication $SearchApp  -searchserviceinstance $SSI

# 6.Create a new Crawl Topology.
write-host 6.Create a new Crawl Topology.
$CrawlTopo = $SearchApp | New-SPEnterpriseSearchCrawlTopology

# 7.Create a new Crawl Store.
write-host 7.Create a new Crawl Store.
$CrawlStore = $SearchApp | Get-SPEnterpriseSearchCrawlDatabase

# 8.Create a new Crawl Component.
write-host 8.Create a new Crawl Component.
New-SPEnterpriseSearchCrawlComponent -CrawlTopology $CrawlTopo -CrawlDatabase $CrawlStore -SearchServiceInstance $SSI

# 9.Activate the Crawl Topology.
write-host 9.Activate the Crawl Topology.
do
{
    $err = $null
    $CrawlTopo | Set-SPEnterpriseSearchCrawlTopology -Active -ErrorVariable err
    if ($CrawlTopo.State -eq "Active")
    {
        $err = $null
    }
    Start-Sleep -Seconds 10
}
until ($err -eq $null)

# 10.Create a new Query Topology.
write-host 10.Create a new Query Topology.
$QueryTopo = $SearchApp | New-SPenterpriseSEarchQueryTopology -partitions 1

# 11.Create a variable for the Query Partition
write-host 11.Create a variable for the Query Partition
$Partition1 = ($QueryTopo | Get-SPEnterpriseSearchIndexPartition)

# 12.Create a Query Component.
write-host 12.Create a Query Component.
New-SPEnterpriseSearchQueryComponent -indexpartition $Partition1 -QueryTopology $QueryTopo -SearchServiceInstance $SSI

# 13.Create a variable for the Property Store DB.
write-host 13.Create a variable for the Property Store DB.
$PropDB = $SearchApp | Get-SPEnterpriseSearchPropertyDatabase

# 14.Set the Query Partition to use the Property Store DB.
write-host 14.Set the Query Partition to use the Property Store DB.
$Partition1 | Set-SPEnterpriseSearchIndexPartition -PropertyDatabase $PropDB

# 15.Activate the Query Topology.
write-host 15.Activate the Query Topology.
do
{
    $err = $null
    $QueryTopo | Set-SPEnterpriseSearchQueryTopology -Active -ErrorVariable err -ErrorAction SilentlyContinue
    Start-Sleep -Seconds 10
    if ($QueryTopo.State -eq "Active")
        {
            $err = $null
        }
}
until ($err -eq $null)

Write-host "Your search application $SSAName is now ready"

Obsolete

Keeping here as reference. Ignore this section. Refer to the Server Roles table to find the Search Query role. These are the servers we will be working with here.

  1. Identify the first Search Query server and login with the SharePoint Setup User Account (SP10_Setup).
  2. Open the SharePoint 2010 Management Shell as Administrator (run as Administrator).
  3. Change line 4 (line beginning with Set-SPEnterpriseSearchService) to the correct environment service account (DOMAIN\SP10_Search for Production).
  4. In SharePoint 2010 Management Shell, type in the following (note the 3rd line will be the actual password for SP10_Search):
$searchService = Get-SPEnterpriseSearchService
$password = Read-Host -AsSecureString
pass@word11
Set-SPEnterpriseSearchService -IgnoreSSLWarnings $true -ServiceAccount DOMAIN\SP10_Search -ServicePassword $password
$ssInstance = Get-SPEnterpriseSearchServiceInstance -Local
Get-SPEnterpriseSearchServiceInstance -Local | Start-SPEnterpriseSearchServiceInstance

Repeat this for other Search Query servers. These will generally be the Web Servers, except CA Host.

Create Top-Level Website

  1. First create a web application using the command below. Use SP10_Intranet for the managed account. Verify the variables and execute this script:

$AppPool = "SharePoint Home"
$sitename = "Home"
$AppAcct = (Get-SPManagedAccount DOMAIN\SP10_Intranet)
$DBName = "WSS_Content_Portal"
$DBServ = "SPContent01"
$header = "[TBD].company.com"
$path = "D:\Sites\[TBD].company.com"
$port = 80

New-SPWebApplication -ApplicationPool $AppPool -Name $sitename -ApplicationPoolAccount $AppAcct -AuthenticationMethod "Kerberos" -Confirm -DatabaseName $DBName -DatabaseServer $DBServ -HostHeader $header -Path $path -Port $port
  1. Next, create the top level site:

$url = "https://[TBD].company.com/"
$owner = "DOMAIN\SP10_Farm"
$dbname = "WSS_Content_Portal"
$email = "farm-admin@comapny.com"
$w = Get-SPWebApplication https://[TBD].company.com

New-SPSite $url -OwnerAlias $owner -ContentDatabase $dbname -HostHeaderWebApplication $w -Confirm

Perform Administrative Tasks

  • Configure outgoing email settings
  • Configure workflow settings
  • Configure diagnostic logging (Set-SPLogLevel)
if (Get-Item L:\Admin)
{}
else{
New-Item -type directory -path L:\Admin
}
Get-SPLogLevel > L:\Admin\before.txt
Set-SPLogLevel -TraceSeverity Medium -EventSeverity Information
Get-SPLogLevel > L:\Admin\after.txt
  • Configure diagnostic logging
    • Central Admin --> Monitoring --> Configure diagnostic loggin
    • Configure Event Throttling as desired.
    • Enable Event Log Flood Protection
    • Trace Log Path: L:\Trace
    • Number of days to store log files: 30
  • Configure antivirus settings

UPS: Don't Sync Disabled Accounts

To NOT include disabled accounts in the profile sync, set a filter exclusion for

userAccountControl bit on equals 2

More information from Spence Harbar

Skin by RIL Partner