Get a Specific Profile Service Application Instance


Scenario/Problem: You need to obtain a Profile 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 Profile Service Application instance with the Get-SPServiceApplication cmdlet retrieves a specific secure store service instance. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 14.2.

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


$profileSA = Get-SPServiceApplication -Identity 9b6235e4-f306-4ccc-
8192-0c83cb679476


No cmdlet exists for getting an object type related to a user profile service application. Any cmdlet using the service application identity uses the SPServiceApplicationPipeBind type, so a generic service application object needs to be utilized.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.111.24