Get a Specific Work Management Service Application Instance

Scenario/Problem: You need to obtain a metadata service application instance reference.

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

Providing the identity of the Work Management Service Application instance with the Get-SPServiceApplication cmdlet retrieves a specific Work Management Service instance. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 19.2.

Listing 19.2. Assigning a Variable to a Specific Work Management Service Application

$workMgmt = Get-SPServiceApplication-Identity 61295eb2-c947-4bab-9333-3adee98d9125

Instead of the GUID, you can use the display name. ...

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.