Answer to the AI agent:
Thanks. I tested the suggested TpmDiagnostics commands on a computer where I had reproduced the fault (Intel PTT, IntermediateCACertStore holding only certificates with the right subject names but other keys).
The install commands do not repair it. InstallEkCertFromNVR and InstallEkCertThroughCoreProv both report success, but IntermediateCACertStore is unchanged afterwards. The same is true when the store is empty: it stays empty. They reinstall the EK certificate itself, which was already correct. Enrollment keeps failing with the same 404.
The tool does however detect the fault. Comparing two of its commands shows whether Windows' record disagrees with the TPM:
| IntermediateCACertStore holds | ekchainNV (TPM only) |
ekchain (Windows' record) |
|---|---|---|
| The TPM's own chain | Valid chain to the manufacturer's root | Valid chain |
| Another TPM's chain, same names | Valid chain | Trust error 0x10008, chain stops early |
| Nothing | Valid chain | Trust error 0x10000, EK certificate alone |
So if ekchainNV gives a valid chain and ekchain does not, the certificates in the TPM are fine and Windows' copy of them is the problem. That is the case where adding the TPM's own chain certificates to the store, as described in my question, makes enrollment work.
If both commands give the same error, the chain in the TPM itself does not reach the manufacturer's root, and this is a different problem.
Installing the manufacturer's CA certificates into the ordinary Windows certificate stores, as suggested in other threads, does not help either: enrollment builds the chain from IntermediateCACertStore.
My questions to Microsoft stand: Sysprep leaves this store in place, TPM provisioning never checks it against the TPM, and the enrollment error gives no hint that the store is the cause.
Answer to James:
The Sysprep logs exist on the affected laptop, but I only recorded their dates, not their content. System32\Sysprep\Panther has logs from two dates, about six weeks apart and both months before the customer's first boot, so the image was generalized twice.
One correction to my question: I wrote that the store was last written on the day of the Sysprep. I did not measure that directly, because I had already repaired the store when I collected the timestamps. What I have is a neighbouring key under Services\TPM\WMI last written in the same minute as the first Sysprep log, and the first failed enrollment two minutes into the customer's first boot, already asking for the wrong authority. So the certificates were in place before first boot; exactly when they were written is not established.
I have not done the clean-image experiment. It would be the right way to tell a Sysprep fault from something added by the manufacturer's imaging process. Since I no longer have access to the affected laptop, I cannot go back to read its Sysprep logs or check anything else on it.