| Previous | Next |
| STATUS_CTX_SHADOW_ENDED_BY_MODE_CHANGE | STATUS_CTX_LOGON_DISABLED |
STATUS_CTX_SHADOW_NOT_RUNNING
The requested shadow stop reached the desired end state already
STATUS_CTX_SHADOW_NOT_RUNNING means that the specified session is not currently being remotely controlled, so there is no active shadow relationship to terminate. It is often a lifecycle observation rather than evidence that the target session itself is missing or inaccessible.
Automation should distinguish a failed attempt to stop a live control session from a request whose desired result is already true. An unconditional retry cannot create a shadow session to stop and may hide a race with a prior disconnect or display-mode change.
Useful evidence
- Query the current session state and remote-control relationship before and after a stop request, recording the controller and target IDs.
- Treat this status as an idempotency case only when the intended result was that remote control be absent; otherwise investigate why the expected session ended earlier.
- Use session notifications or an explicit state query instead of assuming that a previously successful start operation is still active.
References
- Microsoft Open Specifications: NTSTATUS values
- Microsoft: Remote Desktop Services API functions
- Microsoft: WTSRegisterSessionNotification
Looking for a different code? Search another status or error code.