Steps to Configure and Add “Search” subsite to root collection

Steps to Configure and Add “Search” subsite to root collection,

Step I: Goto site Action>> Site settings >> Site Collection Administration – Site collection features

Step II: Activate Feature –

SharePoint Server Standard Site Collection features

 

Step III: Add below variable to PowerShellScript.PS1

 

#

# Set global variables used for all environments

#

 

$SearchTempl=”SRCHCEN#0″

 

 

$SearchTitle=”Search”

$SearchUrl=”Search”

 

Step IV: Add below code line to section where you want to add

New-SPWeb -Url ($siteUrl + “/” + $SearchUrl) -Name $SearchTitle -Template $SearchTempl

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s