# OpenClaw SERVICE_DEFINITION_UNKNOWN on Windows

Canonical: https://cwyn.com/pages/openclaw-guide-windows-gateway-scheduled-task-unknown.html
Last updated: 2026-11-26T19:48:05-05:00

OpenClaw operations guide

When OpenClaw reports `SERVICE_DEFINITION_UNKNOWN`, keep the working Windows Gateway task in place. Run `openclaw gateway status --deep` with the task’s profile and compare the reported Gateway with the task’s action in Task Scheduler. If the task starts an executable directly, have its owner rehearse the rollback before replacing it.

Last updated November 26, 2026 · Published November 18, 2026

By CWYN · Nov 26, 2026 · Checked against docs, not run · [Windows Scheduled Task reference](https://raw.githubusercontent.com/openclaw/openclaw/v2026.11.5/docs/platforms/windows.md)

## 1. Match the active Gateway to the task

Run `openclaw gateway status --deep` with the same profile the task uses. In Task Scheduler, compare the task’s action and working directory with the expected profile and runtime. Record the task path, principal, trigger and current state privately. Follow the [Windows Gateway reference](https://docs.openclaw.ai/platforms/windows).

If the Gateway is healthy and a cron job runs but skips its backup provider, [check the cron job’s saved provider account](https://cwyn.com/pages/openclaw-guide-cron-cross-provider-fallback.html).

## 2. Identify the action type

Check whether the task invokes the managed launcher or starts an executable such as `node.exe` directly. A [November operator report](https://community.openclaw.ai/t/windows-service-definition-unknown-blocks-direct-node-scheduled-task-adoption/440) describes the latter case. The status command could inspect the task while an install attempt refused to replace it.

## 3. Check what the updater can restore

The [2026.11.5 platform reference](https://raw.githubusercontent.com/openclaw/openclaw/v2026.11.5/docs/platforms/windows.md) says strict reads can inspect direct executables with literal arguments, while automatic update service management leaves these custom actions alone. Treat an unavailable service plan as a handoff to the task owner. Keep the healthy task in place.

## 4. Prepare a recovery record

Have the task owner export the task XML privately and record the launch command, profile, runtime version, task permissions and working directory. Retain a restorable OpenClaw state backup separately. Verify that the owner can restore both the task definition and the matching application state in a test Windows environment before replacing either.

## 5. Rehearse the replacement off production

If the owner chooses a managed install, use a disposable Windows environment or a separate test profile with its own port, state and task, with external delivery disabled. Confirm that it starts under the intended principal, responds after a restart and can return to the saved setup. Schedule the production handoff only after the task owner can recover the original service.

## Proof: what was checked

Version

OpenClaw 2026.11.10

Date checked

Nov 25, 2026

Method

Checked against the OpenClaw docs, not run.

Symptom

`SERVICE_DEFINITION_UNKNOWN`

Fix

Keep the healthy task in place and [hand the upgrade to the task owner](https://cwyn.com/pages/openclaw-guide-windows-gateway-scheduled-task-unknown.html#3-check-what-the-updater-can-restore).

Evidence

No log captured. The [Windows Gateway reference](https://docs.openclaw.ai/platforms/windows) and [2026.11.5 platform reference](https://raw.githubusercontent.com/openclaw/openclaw/v2026.11.5/docs/platforms/windows.md) cover Scheduled Task handling. On macOS, `openclaw gateway status --help` confirmed the flag in `openclaw gateway status --deep`.

[Get your free CWYN Score](https://cwyn.com/score) to choose your next setup improvement.

## Related guides

- [OpenClaw Gateway offline after an update on macOS: check launchd](https://cwyn.com/pages/openclaw-guide-macos-gateway-after-update.html)
- [Restore an OpenClaw backup: rehearse a move to a new host](https://cwyn.com/pages/openclaw-guide-backup-restore-drill.html)
- [Install OpenClaw on Windows with WSL2](https://cwyn.com/pages/openclaw-guide-windows-wsl2-install.html)
- [Install Claude Code on Windows with PowerShell](https://cwyn.com/pages/claude-code-guide-windows-powershell-install.html)

## Next steps

- [All 135 OpenClaw guides](https://cwyn.com/guides/openclaw/)
- [OpenClaw setup walkthrough](https://cwyn.com/setup/openclaw/)
- [CWYN Score](https://cwyn.com/pages/score.html)
- [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html)

### Rehearse the rollback for a service change

The [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html) is an optional paid kit with a rollback checklist you can use while rehearsing the change on a test Gateway.
Kit details as of Nov 18, 2026

OpenClaw Complete Setup Pack $14.95

Start an OpenClaw workspace with editable instructions, local Gateway and tool presets, and checklists for pairing, memory, costs and rollback.
