Get a Specific Service Application


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-a
2e0-4397-bf07-cd3d207e630e



Tip

Instead of using -Identity, you can use -Name and provide the name of the service application in quotes.


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

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