February 2013
Intermediate to advanced
304 pages
8h 26m
English
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. ...
Read now
Unlock full access