| Previous | Next |
| STATUS_TPM_KEY_OWNER_CONTROL | STATUS_TPM_NOT_FULLWRITE |
STATUS_TPM_BAD_COUNTER
STATUS_TPM_BAD_COUNTER is a Windows NTSTATUS value in the TPM facility. For STATUS_TPM_BAD_COUNTER, it belongs to the TPM 1.2 error family and is normally surfaced through the Windows TPM stack, such as TPM Base Services, rather than by ordinary file, registry or network APIs.
TPM 1.2 monotonic counters are separate TPM resources with handles and lifecycle rules. This status means the counter handle supplied by the caller does not identify the counter expected by the command.
For diagnostics, record whether the counter was created, read, incremented or released immediately before the failure. Counter handles are not interchangeable with key, session or NV handles.
Diagnostic focus
- Trace counter creation and release together with the returned handle.
- Detect handle reuse after TPM reset, context reload or process restart.
- Compare with STATUS_TPM_INVALID_RESOURCE if the wrong resource class was supplied instead of a valid counter handle.
References for STATUS_TPM_BAD_COUNTER
Looking for a different code? Search another status or error code.