| Previous | Next |
| WCM_E_USERALREADYREGISTERED | WCM_E_NAMESPACENOTFOUND |
WCM_E_USERNOTFOUND
WCM_E_USERNOTFOUND is the failure HRESULT 0x80220013 (signed decimal -2145255405, unsigned decimal 2149711891). Its severity bit is 1, facility is 34 (FACILITY_STATE_MANAGEMENT), and the facility-specific code field is 0x0013.
AllStat records the Windows SDK description as “User is not registered.”
Meaning in Settings Management Infrastructure
The requested user has no SMI registration. The operation reached lookup, removal, or application of per-user settings after resolving a user identity. The first branch to test is whether registration was never performed for the offline image; keep that separate from the possibility that the wrong target or account SID was selected.
Point of failure
At this boundary, capture user SID and account identity used by the request, then correlate it with target mode and offline-image root. Assign ownership only after checking enumerated registered users and their statuses.
Causes to test independently
- registration was never performed for the offline image
- the wrong target or account SID was selected
- cleanup removed the registration before later settings were applied
- an account was recreated and now has a different stable identity
Data to collect
- user SID and account identity used by the request
- target mode and offline-image root
- enumerated registered users and their statuses
- timeline of registration, settings application, and cleanup
- whether account creation/restore changed the identity
Step-by-step diagnosis
- confirm the request addresses the intended image and user SID
- perform the supported registration step before applying per-user settings
- treat optional absent users separately from required deployment accounts
- do not substitute account name matching for stable identity
- replay settings only after the user entry is visible in the same engine/context
Recovery strategy
Retry after registering the correct user or selecting the right target. Repeating against an absent entry will not succeed.
What this value does not mean
WCM_E_USERALREADYREGISTERED blocks duplicate creation; USERNOTFOUND means a later operation cannot resolve any registration for the supplied identity.
Illustrative scenario
A migration package contains settings for an account that was not created in the destination image. The per-user namespace cannot be applied until registration exists.
Implementation guidance
For operational telemetry, retain enumerated registered users and their statuses; also record timeline of registration, settings application, and cleanup. Preserve a redacted summary of whether account creation/restore changed the identity; use a cryptographic hash when that evidence is a file, stream, or generated artifact.
Official Microsoft references.
- Microsoft: SMI error and success constants.
- Microsoft: Settings Management Infrastructure API.
- Microsoft: SMI interfaces.
- Microsoft: ISettingsEngine::GetNamespace.
- Microsoft: ISettingsContext::Deserialize.
Looking for a different code? Search another status or error code.