Check if a Service Application is Running in SharePoint using PowerShell

If you are a SharePoint administrator, then there may be times when you need to check if a service application is running. In my case, A couple of times, I had to get the service application’s status before performing activities such as: Stop and Starting the service, monitoring the service application’s availability, etc. This blog post will show you how to use PowerShell to check if the Service Application is running (or not) in SharePoint.

PowerShell script to check service application’s status:

Here is how we can check if the service application is created and running using PowerShell.

Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue

#Display Name of the Service Application
$DisplayName="Managed Metadata Services"

#Get the Service Application from its Name
$ServiceApp = Get-SPServiceApplication | Where { $_.DisplayName -eq $DisplayName}
if($ServiceApp -ne $null)
 #get the Service application status
 Write-Host "Service application either not found or not created!"

This script gives the service application’s current status. You can also get a service application from its type. Here is how:

#Type Name of the Service Application
$TypeName="Managed Metadata Service"

#Get the Service Application from its Type Name
$SeviceApp = Get-SPServiceApplication | Where {$_.TypeName -eq $TypeName}

Here is the Type Name of all service Applications:

Type Name
Access Services Web Service Application
Access Services 2010 Web Service Application
App Management Service Application
Application Discovery and Load Balancer Service Application
Business Data Connectivity Service Application
Excel Services Application Web Service Application
Machine Translation Service
Managed Metadata Service
PerformancePoint Service Application
PowerPoint Conversion Service Application
Search Administration Web Service Application
Search Service Application
Secure Store Service Application
Security Token Service Application
State Service
Usage and Health Data Collection Service Application
User Profile Service Application
Visio Graphics Service Application
Work Management Service Application
Word Automation Services

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. Passionate about sharing the deep technical knowledge and experience to help others, through the real-world articles!

One thought on “Check if a Service Application is Running in SharePoint using PowerShell

  • Hello Salaudeen, SharePoint Diary has so much useful information! I am having a major issue with our Time Sheets Web Site which runs on top of SharePoint 2010 (part of Dynamics AX Enterprise Portal). I tried opening a ticket with Microsoft but they said they cannot provide assistance because the Portal is unsupported (They want us to migrate to Dynamics 365 instead). When user access the time sheets, 50% of the time the data cannot be displayed. The time sheet consists of a header and a Grid with the lines of detail for each day. Sometimes all the data is displayed butsome other times we either have no data at all in the header, or the header is there but no details in the Grid. We used to have 2 SP servers in the Farm but now we only have one and I removed the non-existing server from the farm configuration. I suspect that the Farm is still trying to communicate with the non-existing server (e.g., Load Balancer Service or ROund-Robin, etc.) DO you have any ideas what could be causing this? I would appreciate any help that you could provide. Thank you.


Leave a Reply

Your email address will not be published. Required fields are marked *