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.
$profileSA = Get-SPServiceApplication -Identity 9b6235e4-f306-4ccc-8192-0c83cb679476
No cmdlet exists for getting an object type related to a user profile service ...
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.