Disable Session State

Scenario/Problem: You want to disable session state for your SharePoint Web Applications.

Solution: Use the Disable-SPSessionStateService cmdlet.

Disabling the session state can be performed using the Disable-SPSessionStateService cmdlet. Executing this cmdlet removes the current database and disables the service. Listing 18.3 shows an example command line.

Listing 18.3. Disabling Session State

Disable-SPSessionStateService

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.