Display Service Instances on a Server
Scenario/Problem: You need to obtain a service instance reference and therefore need a listing of available service instances.
Solution: Use the Get-SPServiceInstance
cmdlet with the Server
parameter to display all the service instances on that server.
To obtain a service instance reference object, you need to find the identity of the service instance. Using the Get-SPServiceInstance
with the Server
parameter (see Listing 6.7) displays all available service applications, as shown in Figure 6.2.
Get-SPServiceInstance -Server sp2013svr01 -All
Tip
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.