- On the Start menu, click All Programs.
- Click Microsoft SharePoint 2010 Products.
- Click SharePoint 2010 Management Shell.
- To create a service application, type the following command:
(Where <StateServiceName> is the name for the service application)$serviceApp = New-SPStateServiceApplication -Name "<StateServiceName>" - To create a State Service database and associate it with a service application, type the following command:
(Where <StateServiceDatabase> is the name of the State Service database to create and associate with the service application.)New-SPStateServiceDatabase -Name "<StateServiceDatabase>" -ServiceApplication $serviceApp - To create a State Service application proxy, associate it with the service application, add it to the farm's default proxy group, and type the following command:
(Where <ApplicationProxyName> is the name of the application proxy.)New-SPStateServiceApplicationProxy -Name "<ApplicationProxyName>" -ServiceApplication $serviceApp -DefaultProxyGroup
Monitoring the State Service
Administrators can monitor the State Service by using the SharePoint Monitoring and Event reporting service. Monitoring the service can help confirm the service was properly configured and can also identify any configuration or setup issues associated with the service.
For more information about how to monitor performance of the State Service, see Health monitoring (SharePoint Server 2010).
For more information about how to monitor performance of the State Service, see Health monitoring (SharePoint Server 2010).