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.
$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.
18.222.111.24