Restart Windows Service
Restart a Windows service by stopping it and then starting it again
Parameters
Section titled “Parameters”Windows service name
Section titled “Windows service name”Required
The name of the Windows Service to restart
Timeout
Section titled “Timeout”Required — Default: 60
Maximum wait time in seconds for each of the stop and start operations
Details
Section titled “Details”- Category: Windows service
- Brick ID:
Windows-Service-Restart
Raw JSON definition
Section titled “Raw JSON definition”{ "category": "windowsService", "description": "Restart a Windows service by stopping it and then starting it again", "developerVendor": "CapaSystems A/S", "displayName": null, "id": "Windows-Service-Restart", "name": "Restart Windows Service", "parameters": [ { "allowManualInput": false, "defaultValue": "", "defaultValueObject": null, "description": "The name of the Windows Service to restart", "id": "ServiceName", "name": "Windows service name", "regExValidation": "", "required": true, "type": "TextBox", "value": null, "values": [], "valuesObject": null }, { "allowManualInput": false, "defaultValue": "60", "defaultValueObject": null, "description": "Maximum wait time in seconds for each of the stop and start operations", "id": "MaxTimeOut", "name": "Timeout", "regExValidation": "", "required": true, "type": "Integer", "value": null, "values": [], "valuesObject": null } ], "powershell": { "base64Encoded": true, "function": "RnVuY3Rpb2..." }, "type": "powerbrick", "version": "2026.9.1.1"}