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.

No comments:

Post a Comment