Published: May 12, 2010
These Windows PowerShell cmdlets are used to support session state and the state service.
Disable-SPSessionStateService
Turns off the session state service on the farm
Dismount-SPStateServiceDatabase
Removes the association to a state service database from the farm without dropping the database in the Microsoft SQL Server database
Enable-SPSessionStateService
Creates a session state database and turns on the session state service
Get-SPSessionStateService
Returns the properties of the session state service, including time-out and database settings
Get-SPStateServiceApplication
Returns state service applications on the farm
Get-SPStateServiceApplicationProxy
Returns state service application proxies on the farm.
Get-SPStateServiceDatabase
Returns a state service database.
Initialize-SPStateServiceDatabase
Installs the state database schema into a state service database
Mount-SPStateServiceDatabase
Attaches an existing state service database to the farm
New-SPStateServiceApplication
Creates a new state service application
New-SPStateServiceApplicationProxy
Creates a proxy for a state service application
New-SPStateServiceDatabase
Creates and provisions a new state service database, and installs the state database schema into it
Remove-SPStateServiceDatabase
Removes a state service database from a state service application and drops it from the SQL Server
Resume-SPStateServiceDatabase
Resumes a paused state service database so that new rows of data are received
Set-SPSessionStateService
Updates the credentials that are used to communicate with the state service database
Set-SPStateServiceApplication
Updates the name of a state service application
Set-SPStateServiceApplicationProxy
Updates the name of a state service application proxy
Set-SPStateServiceDatabase
Updates properties of a state service database
Suspend-SPStateServiceDatabase
Pauses a state database and thus prevents new rows of data from being added to a database
May 12, 2010
Initial publication