Get a Specific State Service Application

Scenario/Problem: You need to obtain a specific State Service Application reference.

Solution: Use the Get-SPStateServiceApplication cmdlet to assign a variable the results using the -Identity parameter.

Providing the identity of the State Service Application with the Get-SPStateServiceApplication cmdlet retrieves a specific State Service Application. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 18.7.

Listing 18.7. Assigning a Variable to a Specific State Service Application

$stateSA = Get-SPStateServiceApplication -Identity 5da22672-b2ad-4e68-b725-1e91a7e693eb

Tip

You may use the display name of the State Service Application in quotes instead of providing ...

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.