Display Session State Information

Scenario/Problem: You want to view the current session state configuration for your SharePoint farm.

Solution: Use the Get-SPSessionStateService cmdlet.

The Get-SPSessionStateService cmdlet provides the current information regarding session state within your SharePoint farm. Execute the cmdlet with no parameters, as shown in Listing 18.4. If the Session State Service is enabled, the database information is displayed, as shown in Figure 18.1. If the Session State Service is not enabled, the database information is blank, as shown in Figure 18.2 (this is the default after installing a new farm).

Listing 18.4. Reviewing the Session State Configuration

Get-SPSessionStateService

Figure 18.1. Displaying an enabled ...

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.