| Previous | Next |
| STATUS_PCP_DEVICE_NOT_FOUND | STATUS_PCP_KEY_NOT_LOADED |
STATUS_PCP_WRONG_PARENT
The key is being used under an incompatible PCP storage parent
STATUS_PCP_WRONG_PARENT means PCP rejected an attempt to import or load a key under the wrong storage parent. The status is about the relationship between key material and the provider hierarchy that owns or protects it, not merely an invalid filename or a missing handle.
This can appear after migration or restore when an application retains metadata from one provider context and attempts to use it in another. A persisted key can have a valid name while still being unusable under the parent selected by the caller.
What to check
- Record the provider name, key name, scope, import source, and the parent or hierarchy expected by the workflow.
- Do not attempt to make the error disappear by copying opaque key blobs between providers; determine whether the product supports export, migration, or re-enrollment for that key class.
- Compare the original provisioning environment with the destination machine before approving a recovery action.
References
- Microsoft: PCP and TPM error codes
- Microsoft: CNG Key Storage Providers
- Microsoft: NCryptCreatePersistedKey
Looking for a different code? Search another status or error code.