Get a Specific Metadata Service Application Instance

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

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

Providing the identity of the Metadata Service Application instance with the Get-SPMetadataServiceApplication cmdlet retrieves a specific metadata service instance. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 17.2.

Listing 17.2. Assigning a Variable to a Specific Metadata Service Application

$metadataApp = Get-SPMetadataServiceApplication -Identity f3e6d88a-e0a7-455c-bbef-b4942e7607b5

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.