Test Tbsi_Context_Create rather than using sc.exe qc TBS as the availability check, and use Tbsip_Submit_Command to send properly marshalled TPM 2.0 NV commands when that context succeeds.
Service status on current Windows 11
Microsoft’s public documentation still describes TBS as a system service, preinstalled on Windows 8/Windows Server 2012 and later on systems with a TPM.^1^ It does not document Error 1060 as expected behavior or state that the TBS Service Control Manager registration was intentionally removed from a particular Windows 11 build.
A directly matching Windows 11 report documents the same missing-service symptom, but it has no accepted or recommended answer.^2^ Therefore:
- Error 1060 alone does not establish that TPM access is unavailable.
- It also cannot be declared officially intentional from the currently published documentation.
- Do not create an SCM service entry manually; that would not be a documented TBS installation procedure.
Supported API for TPM 2.0 NV operations
The supported native Windows interface is the TPM Base Services API in tbs.h, linked through Tbs.lib and implemented by Tbs.dll.^3^
For TPM 2.0:
- Create a TBS context with
Tbsi_Context_Create. - Set
TBS_CONTEXT_PARAMS2.versiontoTPM_VERSION_20. - Set the reserved field to zero and
includeTpm20to 1. - Marshal the applicable TPM 2.0 command—such as
TPM2_NV_ReadorTPM2_NV_Increment—into a byte buffer. - Submit it with
Tbsip_Submit_Command. - Parse both layers of status:
- the returned
TBS_RESULT; - the TPM response code in the returned TPM response buffer.
- the returned
A minimal availability probe is:
#include <windows.h>
#include <tbs.h>
TBS_HCONTEXT context{};
TBS_CONTEXT_PARAMS2 params{};
params.version = TPM_VERSION_20;
params.includeTpm20 = 1;
params.includeTpm12 = 0;
TBS_RESULT result = Tbsi_Context_Create(
reinterpret_cast<PCTBS_CONTEXT_PARAMS>(¶ms),
&context);
if (result == TBS_SUCCESS) {
Tbsip_Context_Close(context);
}
Tbsi_Context_Create is the documented operation that creates the handle used to pass commands to TBS. It can return specific errors including TBS_E_SERVICE_NOT_RUNNING, TBS_E_SERVICE_DISABLED, and TBS_E_TPM_NOT_FOUND.^4^
Submit an already-marshalled command as follows:
UINT32 responseSize = sizeof(response);
TBS_RESULT result = Tbsip_Submit_Command(
context,
TBS_COMMAND_LOCALITY_ZERO,
TBS_COMMAND_PRIORITY_NORMAL,
command, commandSize,
response, &responseSize);
Only locality zero is currently supported. A successful TBS submission can still contain a TPM-level failure in the response buffer, so check the TPM response code before accepting an NV read or increment as successful.^5^
TBS schedules access across competing callers and passes other TPM commands through after handling relevant resource virtualization.^6^ The application remains responsible for TPM 2.0 wire-format marshalling, sessions, authorization, NV index attributes, policies, and response parsing. TBS is not a high-level NV counter API.
How to interpret the API probe
-
TBS_SUCCESS: TBS is operational despitesc.exereturning 1060. Treat the SCM query as unsuitable for feature detection and continue through the API. -
TBS_E_TPM_NOT_FOUND: the requested TPM version was not found. Investigate TPM exposure/version rather than service registration. -
TBS_E_SERVICE_NOT_RUNNINGorTBS_E_SERVICE_DISABLED: this is an actual TBS availability failure, unlike SCM Error 1060.^7^ -
TBS_E_ACCESS_DENIED: review the caller context and whether the command is blocked. Windows 8 and later permit standard-user and administrator access, but TBS restricts certain TPM commands through command blocking.^8^
Supported remediation if the API fails
Since DISM, SFC, and an in-place repair installation have already completed without restoring the SCM entry, repeating them is unlikely to distinguish the issue.
There is no documented Microsoft procedure in these sources to reconstruct or manually register TBS. If Tbsi_Context_Create returns a TBS service error on an otherwise healthy TPM:
- Record the exact Windows edition, build and revision from
winver. - Capture the exact
TBS_RESULTin hexadecimal. - Confirm that
Tbs.dllloads and record any relevant TPM/TBS event logs, without modifying service or TPM state. - Open a Microsoft Support case with the API result and repair history, asking whether that build intentionally hosts TBS without a visible SCM entry or has a servicing defect.
Clearing the TPM is not appropriate merely for Error 1060 or a missing SCM entry. Microsoft warns that clearing it removes TPM-held keys and can cause data loss; TPM clearing belongs to specific initialization or lockout recovery scenarios, neither of which is established here.^9^
References
- About TBS - Win32 apps | Microsoft Learn
- Windows 11 — TBS (TPM Base Services) not present: support status and user-mode alternatives for NV / monotonic counter - Microsoft Q&A
- TPM Base Services
- Tbsi_Context_Create function (tbs.h)
- Tbsip_Submit_Command function (tbs.h)
- Command Scheduling
- TBS Return Codes
- Using TBS
- Troubleshoot the TPM