February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to obtain a specific service application reference.
Solution: Use the Get-SPServiceApplication cmdlet to assign a variable the results using the -Identity parameter.
Providing the identity of the service application with the Get-SPServiceApplication cmdlet retrieves a specific service application. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 6.3.
Listing 6.3. Assigning a Variable to a Specific Service Application
$sApp = Get-SPServiceApplication -Identity bc4399ed-a2e0-4397-bf07-cd3d207e630e
Tip
Instead of using -Identity, you can use -Name and provide the name of the service application in quotes.
Read now
Unlock full access