I comandi PowerShell necessari per creare la State Service Application in SharePoint 2010
# creo la service application
$srvApp = New-SPStateServiceApplication -Name "State Service Application"

# creo il database
New-SPStateServiceDatabase -Name "SharePoint_StateService" -ServiceApplication $srvApp 

# creo il proxy
New-SPStateServiceApplicationProxy -Name "State Service Application Proxy" -ServiceApplication $srvApp -DefaultProxyGroup