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-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. ...
Read now
Unlock full access