Forum Discussion

Daniel Westerdale's avatar
Daniel Westerdale
Iron Contributor
Feb 08, 2018
Solved

SharePoint Services and Service Applications List

Hi

 

I am planning to install the https://blogs.technet.microsoft.com/stefan_gossner/2017/12/12/december-2017-cu-for-sharepoint-2016-is-available-for-download/  on to a small farm. 

 

As well as checking the version change mentioned in the link. I want to run my own tests including being to list all the Services and Service Applications per Server / minrole.

 

There are loads of PS scripts out there but I really like this one: http://www.sharepointfire.com/2015/10/list-sharepoint-services-on-server-using-powershell/#comment-153835 . In addition, like to also list the Service Applications at the server level / min role and in a similar HTML table.

 

The commandlets below don't really allow me filter on each server or traverse server list (For Each)

Get-SPServiceApplicationProxy


Get-SPServiceApplication

 

Finally, before someone mentions PnPSharePoint 2016 commandlets , I have aired created a service request for this be someone forgot to install it ;-( . Hence,  I am looking at the next maintenance window  .

 

If somebody gets me started I will embellish the script in the link.

  • It is the Service Instance (Get-SPServiceInstance) that indicates where a particular Service Application will be running. Get-SPServiceInstance can be filtered by server. Alternatively, you could do something akin to:

    $sa = Get-SPServiceApplication | ?{$_.TypeName -match 'profile'}
    foreach($ins in $sa.Parent.Instances)
    {
    $ins.Parent
    }

2 Replies

  • It is the Service Instance (Get-SPServiceInstance) that indicates where a particular Service Application will be running. Get-SPServiceInstance can be filtered by server. Alternatively, you could do something akin to:

    $sa = Get-SPServiceApplication | ?{$_.TypeName -match 'profile'}
    foreach($ins in $sa.Parent.Instances)
    {
    $ins.Parent
    }
    • Daniel Westerdale's avatar
      Daniel Westerdale
      Iron Contributor

      Hi Trevor Seward

       

       

      I found the Get-SPServiceInstance to be the most useful.  Thanks, I added the output to my test/regression plan.

       

      I also ran the script snippet but this seem seems to show all the minroles configured for the Farm; against the current server.  This didn't make any sense as I know from looking a Central Admin that this server only performs  one of the  minroles  and not all of them at the same time!

Resources