Skip to content

SPSessionStateService

Brian Farnhill edited this page Jun 2, 2016 · 18 revisions

Parameters

Parameter Attribute DataType Description Allowed Values
DatabaseName Key string The name of the database for the service
DatabaseServer Key string The name of the database server for the database
Ensure Write string Present is the state service should be enabled, absent if it should be disabled Present, Absent
SessionTimeout Write uint32 What is the timeout on sessions
InstallAccount Write String POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5

Description

This resource will provision a state service app to the local farm. Specify the name of the database server and database name to provision the app with, and optionally include the session timeout value. If session timeout is not provided it will default to 60.

Example

SPSessionStateService StateServiceApp
{
    DatabaseName         = "SP_StateService"
    DatabaseServer       = "SQL.test.domain"
    Ensure               = "Present"
    PsDscRunAsCredential = $InstallAccount
}
Clone this wiki locally