---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Change Service State activity

# Change Service State activity {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

The Change Service State activity starts or stops a Windows service on a remote
system.
This activity replaces a Powershell activity by the same name available in releases prior
to Istanbul. If you have a workflow created in a previous version that uses the deprecated
activity, your workflow will continue to work normally after upgrading to Istanbul. However,
all new workflows must use the custom version of this activity. This activity was built with
the [Powershell activity template](https://servicenow-prod.fluidtopics.net/SV5g3MJvrMeLhWdD7UG1VQ#t_CreateAPowershellActivity "Create a custom PowerShell activity return data to a workflow from a host using Microsoft PowerShell."), which gives workflow administrators the ability to
store input and output variables in the [databus](https://servicenow-prod.fluidtopics.net/8OYaonyVEUHUlQE7wAXD_w#t_ReuseDataInTheActivityDesigner "The Data tab in the Workflow Editor lists all custom activities used in the current workflow that produce data and displays that data for reuse in other custom activities.").

## Input Variables

{#r_ChangeServiceState__table_vpv_j5n_hp__entry__2}

| Variable | Description |
|-|-|
| hostname | Hostname or IP address of the target Windows machine on which the service is installed. Use the Resolve DNS activity to resolve hostnames into IP addresses. |
| service | Name of the Windows service to start or stop. The service parameter is the service name, not the display name of the service affected. |
| state | There are two actions to select for a service state change: StartService or StopService. |
[Tabelle : 1. Change Service State input variables]

{#r_ChangeServiceState__table_vpv_j5n_hp}

## Output variables

{#r_ChangeServiceState__table_xdr_4yd_3w__entry__2}

| Variable | Description |
|-|-|
| errorMessage | The executionResult.errorMessages from the [Activity designer parsing sources](https://servicenow-prod.fluidtopics.net/jecuRsCuzIyfFDyPkB_Ehw#r_ActivityDesignerParsingSources "This table lists the parsing sources available with each execution template."). If there is no error, this value is null. |
[Tabelle : 2. Change Service State output variables]

{#r_ChangeServiceState__table_xdr_4yd_3w}

## Conditions

{#r_ChangeServiceState__table_a5s_twd_3w__entry__2}

| Condition | Description |
|-|-|
| Success | The target service was successfully started or stopped. |
| Failure | The update to the target service was unsuccessful, or the service was not found on the target system. |
[Tabelle : 3. Change Service State conditions]

{#r_ChangeServiceState__table_a5s_twd_3w}

