start stop manage services in windows server with powershell

This post is all about how to start stop manage services in windows server with powershell. We will discuss the start service powershell command, stop service powershell command, Killing Windows Service that Hangs on Stopping or Not Responding command, how to get service powershell command, how to set service startup type powershell command.

Get Service powershell command windows server

This command will display all service on computer. Default display will be status, service name, and display name each service

Get-Service
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});

Get service begin with search string

Get service begin with Display services that include search string “sp”

Get-Service "sp*" | Sort-Object status
Get service begin with Display services that include search
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});

Display services that include search string

Display services that include search string “sharepoint”

Get-Service -Displayname "*sharepoint*"
Display services that include search string
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});

Get services begin with search string and an exclusion

Get services begin with search string “sp” and an exclusion “spo”

Get-Service -Name "sp*" -Exclude "spooler","sppsvc"
Get services begin with search string and an exclusion
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});

Get object details for service

Get-Service SPAdminV4 | Select-Object *
Get service begin with Display services that include search
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});

Display services that are running

Display services with status Running

Get-Service | Where-Object {$_.Status -eq "Running"}
Display services that are running
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});

Display services that are Stopped

Display services with status “Stopped”

Get-Service | Where-Object {$_.Status -eq "Stopped"}
Display services stopped
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});

Start Service powershell command

Below command returns how to start a particular service using powershell.

Start-Service ServiceName
example: ServiceName = SPAdminV4
Start-Service SPAdminV4

Stop Service powershell command

Below command returns how to stop a particular service using powershell.

Stop-Service ServiceName
example: ServiceName = OSearch16
Stop-Service OSearch16
how to stop a particular service using powershell
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});

Disable Service powershell command

Below command returns how to disable a particular service using powershell.

Set-Service ServiceName -StartupType Disabled
or
Set-Service -Name ServiceName -StartupType Disabled
example: ServiceName = OSearch16
Set-Service -Name OSearch16 -StartupType Disabled
how to disable a particular service using powershell
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});

Start Service with status stopped

Start service whose status is stopped bu running below command.

Get-Service Wsearch | Where {$_.status –eq 'Stopped'} | Start-Service

stop start disable particular windows services with status stopped running stopping using powershell

https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});

Integrating ServiceNow with SharePoint 2013

UNIt goes without saying that every part of an enterprise relies on technology. With more and more technology providers coming to the fore, it is not uncommon to find a variety of technology platforms across the units of an enterprise. To keep the pieces of the enterprise moving together there is often a need for integrating the platforms, which are built by different providers. This blog provides a brief overview of ServiceNow, and what is involved in integrating ServiceNow and SharePoint 2013.

What is ServiceNow?
ServiceNow is a software platform that supports IT Service Management and automates common business processes. It’s a software as a service (SaaS) platform that offers targeted solutions for various units of an enterprise like IT, HR, Operations and IT Business Management. More than two thousand enterprises around the world use the ServiceNow platform extensively for their daily operations. ServiceNow brings the following key benefits for an enterprise:
• Improves service experience for end users
• Maintains service records in a structured model that allows audits
• Automates processes that reduce costs and increase efficiency
• Enables reporting and analytics for company executives

ServiceNow Integration Technologies
ServiceNow integrates with third-party applications and data sources using a variety of techniques, some of which are listed below.

• Single Sign-On
• Web Services—SOAP, REST
• Database Connectivity—ODBC, JDBC
• Import Sets—Excel, CSV, XML
• Email

Integrating with SharePoint 2013
SharePoint 2013 has proved to be a great platform for building enterprise solutions and is widely used by organizations worldwide. Due to the huge popularity of both ServiceNow and SharePoint 2013, the need of their integration becomes almost inevitable. There are two ServiceNow integration techniques that can be utilized to integrate with SharePoint 2013.
• Call ServiceNow REST API to read, create, update and delete service objects
• Send emails to ServiceNow-administered email ID to manage service objects

Let’s see how we can implement both the above techniques using SharePoint 2013 Workflows.

Calling ServiceNow REST API using SharePoint 2013 Workflows
1. Open SharePoint Designer 2013.
2. Add a new site workflow.
3. From the Actions dropdown menu on the ribbon select “Call HTTP Web Service” action.

Call-HTTP-Web-Service

  1. Specify the web service URI corresponding to the ServiceNow table that you want to query or update along with the HTTP method—GET, POST, PUT—depending on your requirement. In the below example the web service call will fetch a list of incidents on the ServiceNow instance.

Call-HTTP-Web-Service1

  1. Specify the request and response parameters so that you can handle them later in the workflow. An example could be where you call the web service to create an incident in ServiceNow and capture the Incident ID in response.

Sending email using SharePoint 2013 Workflows
1. In SharePoint Designer 2013, from the Actions dropdown menu select the “Send an Email” action.

Call-HTTP-Web-Service2

  1. Populate the fields of the email template according to the template that is configured on ServiceNow instance. The placeholders, like the ones shown in the below screenshot, are dynamic.

Call-HTTP-Web-Service3

  1. In the above example, the template could be used to communicate to the ServiceNow instance that user’s task has been completed. The subject would read something like “Task 1234 has been Completed”. When the email is received by ServiceNow it will update the task as completed based on the pre-configured inbound email action.

Unable to open any Excel Services spreadsheet “We’re sorry. We ran into a problem completing your request. Please try again in a few minutes.”

Resolution:

IIS reset