Sunday, March 29, 2015

Create Secure Store Service

To create a secure store, in Central Admin go to Application Management > Manage Service Apps. Choose New from the menu and select Secure Store and fill in the following information:
Go to Central Admin > Application Management > Manage services on server and start the service.
Now go to Central Admin > Application Management > under Manage Service Apps, click Secure Store (top one).
  • Choose to generate a new key
  • Passphrase: PickYourOwnPassphrase

Sunday, March 22, 2015

Create Search Service Powershell

I've not had my search service creation go smoothly for me yet. But the good thing is that I created and deleted the search service numerous times without things going too wrong.  Below is a script I found online mixed with information from Professional SharePoint 2013 Administration and a minor tweak of my own to allow for creation in a farm, not just a local install.

Create Search Service

IMPORTANT! You must run this script on the server in your farm that you want search to be installed. Use your install account to create the search service.

# Get App Pool
$saAppPoolName = "Default SharePoint Service App Pool"

# Search Specifics, we are single server farm
$searchServerName = (Get-ChildItem env:computername).value
$serviceAppName = "Search Service Application"
$searchDBName = "SearchService_DB"

# Grab the Appplication Pool for Service Application Endpoint
$saAppPool = Get-SPServiceApplicationPool $saAppPoolName

# Start Search Service Instances
Write-Host "Starting Search Service Instances..."
Start-SPEnterpriseSearchServiceInstance $searchServerName
Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $searchServerName

# Create the Search Service Application and Proxy
Write-Host "Creating Search Service Application and Proxy..."
$searchServiceApp = New-SPEnterpriseSearchServiceApplication -Name $serviceAppName -ApplicationPool $saAppPoolName -DatabaseName $searchDBName
$searchProxy = New-SPEnterpriseSearchServiceApplicationProxy -Name "$serviceAppName Proxy" -SearchApplication $searchServiceApp

# Clone the default Topology (which is empty) and create a new one and then activate it
Write-Host "Configuring Search Component Topology..."
$clone = $searchServiceApp.ActiveTopology.Clone()
$searchServiceInstance = Get-SPEnterpriseSearchServiceInstance -Local
New-SPEnterpriseSearchAdminComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchContentProcessingComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchAnalyticsProcessingComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance 
New-SPEnterpriseSearchCrawlComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance 
New-SPEnterpriseSearchIndexComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance
New-SPEnterpriseSearchQueryProcessingComponent –SearchTopology $clone -SearchServiceInstance $searchServiceInstance

Write-Host "Search Done!"

In Central Admin > Application Management > Manage Service Applications. Click on the search service and change the default content access account to sp_content.

Move the index

It's a good idea to move your index off your C: drive so it doesn't take up all your space. The example below moves the index to the D: drive.

I found the script Move-SPEnterpriseSearchIndex.ps1 to move the index. Run this script and then alter the last line to something like this:

Move-SPEnterpriseSearchIndex -SearchServiceName "Search Service Application" -Server "SERVERNAMEHERE" -IndexLocation "D:\SearchIndex"

Sunday, March 15, 2015

Create Managed Meta Data Service in SharePoint 2013

The Managed Meta Data service is required for User Profile and search. It's easiest to do this service through Central Admin. Go to Central Admin > Application management > Manage service applications.
  1. Click New button and choose Managed Meta Data Service
  2. Fill in details
    1. Name: Managed Metadata Service
    2. SQL Database Name: Managed_Metadata_Service_DB
    3. use default app pool
  3. Start the service
  4. On the Manage service applications screen, click on the second line for the Managed Meta Data service - just to the right of the name and click the properties button.
  5. Select "This service app is the default storage location for column specific term sets". This makes it so you can use the term set for navigation.

Sunday, March 8, 2015

Create Usage and Health Data Collection Service Powershell

Below is the Powershell script to create the Usage and Health Data Collection service for SharePoint 2013.

New-SPUsageApplication -Name "Usage and Health Data Collection"
$proxy = Get-SPServiceApplicationProxy | where {$_.TypeName -eq "Usage and Health Data Collection Proxy"}

Now to start the service. Go to Central Admin >  Application Management > Service Applications > Manage services on server. Find the Usage and Health Data Collection service and start it.

Sunday, March 1, 2015

Create State Service Powershell

Below is the Powershell script to create the State Service for SharePoint 2013.

New-SPStateServiceApplication -Name "State Service Application"
Get-SPStateServiceApplication| New-SPStateServiceApplicationProxy -defaultproxygroup
Get-SPStateServiceApplication| New-SPStateServiceDatabase -Name "State_Service_DB"
Get-spdatabase | where-object {$_.type -eq "Microsoft.Office.Server.Administration.StateDatabase"} | initialize-spstateservicedatabase

Now to start the service. Go to Central Admin >  Application Management > Service Applications > Manage services on server. Find the State Service and start it.