n the Start menu, click All Programs >> Microsoft SharePoint 2010 Products >> SharePoint 2010 Management Shell.

To create a service application, type the following command:


HTML / XML
$serviceApp = New-SPStateServiceApplication -Name "StateService"
HTML / XML
HTML / XML
Create a State Service database and associate it with a service application, by typing:
HTML / XML
 
New-SPStateServiceDatabase -Name "StateServiceDatabase" -ServiceApplication $serviceApp
HTML / XML
HTML / XML
 Create a State Service Application Proxy and associate it with the service application by typing:
HTML / XML
HTML / XML
 New-SPStateServiceApplicationProxy -Name "StateService" -ServiceApplication $serviceApp -DefaultProxyGroup