Restart Windows Server activity
reference brazil Updated Sep 10, 2026 1 min read r_RestartWindowsServerActivity.md
The Restart Windows Server activity stops and then restarts a Windows server using Powershell.
Note: This activity replaces a Powershell activity by the same name available in releases prior to Geneva. 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 Geneva. However, all new workflows must use the custom version of this activity. This activity was built with the Powershell activity template, which gives workflow administrators the ability to store input and output variables in the databus.
Input variables
| Variable | Description |
|---|---|
| Hostname | Hostname or IP address of the Windows server to restart. |
Output variables
| Variable | Description |
|---|---|
| result | Either success or failure. |
| errorMessage | The executionResult.errorMessages from the Activity designer parsing sources. If this variable is not null, the operation has failed. |
Conditions
| Condition | Description |
|---|---|
| Success | The activity succeeded in restarting the Windows server. |
| Failure | The activity failed to restart the Windows server. |
Parent Topic:PowerShell activity pack
43 lines · 2.4 KB
--- title: Restart Windows Server activity description: The Restart Windows Server activity stops and then restarts a Windows server using Powershell. locale: en-US canonical_url: https://www.servicenow.com/docs/r/servicenow-platform/orchestration/r\_RestartWindowsServerActivity.html release: brazil product: Orchestration classification: orchestration topic_type: reference last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [PowerShell activity pack, Orchestration activity packs, Classic Orchestration, ServiceNow AI Platform Additional Capabilities, Extend ServiceNow AI Platform capabilities] --- # Restart Windows Server activity The Restart Windows Server activity stops and then restarts a Windows server using Powershell. **Note:** This activity replaces a Powershell activity by the same name available in releases prior to Geneva. 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 Geneva. However, all new workflows must use the custom version of this activity. This activity was built with the [Powershell activity template](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/servicenow-platform/orchestration/t_CreateAPowershellActivity.md), which gives workflow administrators the ability to store input and output variables in the [databus](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/servicenow-platform/orchestration/c_OrchestrationDatabus.md). ## Input variables |Variable|Description| |--------|-----------| |Hostname|Hostname or IP address of the Windows server to restart.| ## Output variables |Variable|Description| |--------|-----------| |result|Either **success** or **failure**.| |errorMessage|The **executionResult.errorMessages** from the [Activity designer parsing sources](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/servicenow-platform/orchestration/t_CreateAParsingRule.md). If this variable is not null, the operation has failed.| ## Conditions |Condition|Description| |---------|-----------| |Success|The activity succeeded in restarting the Windows server.| |Failure|The activity failed to restart the Windows server.| **Parent Topic:**[PowerShell activity pack](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/servicenow-platform/orchestration/c_OrchestrPwrshellActivityPack.md)
| title | Restart Windows Server activity |
| description | The Restart Windows Server activity stops and then restarts a Windows server using Powershell. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/servicenow-platform/orchestration/r\_RestartWindowsServerActivity.html |
| release | brazil |
| product | Orchestration |
| classification | orchestration |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | PowerShell activity packOrchestration activity packsClassic OrchestrationServiceNow AI Platform Additional CapabilitiesExtend ServiceNow AI Platform capabilities |