Steps Involved:
- Open SharePoint 2010 Management Shell by going to Start | All Programs | SharePoint | Microsoft SharePoint 2010 Products | SharePoint 2010 Management Shell (Run as Administrator).
- Run the following script.
Powershell Script:
##Get the status of the search service using SharePoint 2010 web service in powershell $uri="http://serverName:10736/sites/ECT/_vti_bin/Search.asmx?wsdl"
## Web Service Reference - http://Site/_vti_bin/Search.asmx $searchWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential ## Returns a status of search service which would be either ONLINE or OFFLINE $searchWebServiceReference.Status()
|