Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

TPM is in reduced functionality mode after deploying Windows with MDT and pre-provisioned BitLocker

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A new Windows 10 build finishes without a single error in the deployment log. The device is signed in and looks normal. Then someone opens the TPM Management console, tpm.msc, and finds this:

The TPM is ready for use, with reduced functionality. Information Flags: 0x900

Microsoft documents this for one deployment pattern. The page is titled "TPM is in reduced functionality mode after successful deployment of Windows 10" and applies to Windows 10, all editions.

Everything before the Fix section only reads information. The Fix section has two parts: a change to the deployment script that protects builds not yet made, and a TPM clear for devices that already have the fault. The clear cannot be undone, so read its warning before you choose it.

What the error means

Microsoft's scenario has two conditions. The deployment uses Microsoft Deployment Toolkit (MDT), and the page says this "can be any version of MDT that supports Windows 10". The second condition reads: "You use the "Enable BitLocker (offline)" step (ZTIBDE.wsf script) to pre-provision BitLocker during Windows PE in the "Preinstall" group." The deployment is successful.

In that situation, tpm.msc reports the message above and two further lines:

  • "The TPM owner authorization is not properly stored in the registry."
  • "Windows's registry information about the TPM's Storage Root Key does not match the TPM Storage Root Key or is missing."

The TPM is the chip that holds the keys BitLocker and other features rely on. Microsoft's Troubleshoot the TPM page says Windows automatically initialises and takes ownership of the TPM, and that "There's no need for you to initialize the TPM and create an owner password." The fault is a case where that ownership was taken by something other than Windows at the wrong moment.

Likely causes

Microsoft states the cause plainly: "This issue occurs because the TpmValidate function in the ZTIBDE.wsf script takes ownership of the TPM from Windows PE unnecessarily." The page continues that Windows "should be able to correctly take ownership of the TPM before OOBE to provision it by using the correct parameters", and that the change of ownership from Windows PE gives the TPM parameters "that Windows doesn't understand". As a result "the key hierarchies in the TPM are disabled and made permanently unavailable to Windows".

Finding What it points to
tpm.msc shows reduced functionality with flags 0x900 and the two registry lines The symptom on this page
The task sequence has the Enable BitLocker (offline) step in the Preinstall group The pre-provisioning pattern the page describes
Reduced functionality on a device built without that step Not the page's cause

The page does not say how many devices built this way are affected, and it does not say whether versions of MDT after the one current when it was written changed the script.

Prove the cause before changing anything

Everything here reads.

  1. On an affected device, open the TPM Management console by running tpm.msc, and compare the status text with the message above. The page says the console reports it.
  2. In the task sequence used for the build, confirm the "Enable BitLocker (offline)" step exists in the "Preinstall" group. That step runs the ZTIBDE.wsf script, per the page.
  3. Compare the devices. If every device built from that task sequence shows the status and a device built without the step does not, the page's cause fits. If the sequence differs, or no device shows the status, look elsewhere.
  4. Read the TPM state from PowerShell with Get-Tpm, which Microsoft's cmdlet page describes as getting an object with information about the TPM on the current computer. It changes nothing:
Get-Tpm

Microsoft's page lists the fields it returns, including TpmPresent, TpmReady ("Whether a TPM complies with Windows Server 2012 standards"), ManagedAuthLevel and OwnerAuth. Microsoft's reduced-functionality page does not say which values Get-Tpm shows in this state, so use the console message as the test.

Example (illustrative): a school in Hobart builds 120 laptops through MDT with BitLocker pre-provisioned in the Preinstall group. A technician opens tpm.msc on one for an unrelated check and finds the reduced functionality message with flags 0x900. The task sequence confirms the pre-provisioning step. All 120 laptops built the same way are candidates; a laptop imaged by hand is not.

Fix

Microsoft gives a workaround for new deployments and a separate note for devices already affected.

New deployments: change ZTIBDE.wsf

Risk: the steps below edit a script that every deployment from this share runs. A mistake in the file can break the BitLocker step for every build until it is put back. The page gives the command and the place to put it, but not the exact syntax for adding a shell command inside a .wsf script, so make the edit on a test share first and run one test build before the production task sequence uses it.

The page's workaround is "for new deployments until a new version of MDT is available": add a reg add command that sets the value UseNullDerivedOwnerAuth to 1 under the tpm\wmi service key to the ZTIBDE.wsf script, at the start of its "Function Main" section. The exact command is given below.

First save the script. Find ZTIBDE.wsf in your deployment share's scripts folder and, from a command prompt in that folder, copy it beside itself under a new name, using the copy <source> <destination> form from Microsoft's command reference:

copy ZTIBDE.wsf ZTIBDE.wsf.bak

Then make the change. Add this command, exactly as Microsoft's page gives it, at the start of the "Function Main" section of ZTIBDE.wsf, and save the file:

reg add hklm\system\currentcontrolset\services\tpm\wmi -v UseNullDerivedOwnerAuth -t REG_DWORD -d 0x01 -f

To undo it: copy ZTIBDE.wsf.bak back over ZTIBDE.wsf, leaving the saved copy in place. That restores the script.

copy /y ZTIBDE.wsf.bak ZTIBDE.wsf

The page does not describe what the registry value does on a device beyond the command itself, so it gives no step for devices built while the line was in place.

Microsoft gives one more option that prevents the fault: "One option to prevent this issue from occurring isn't to pre-provision BitLocker, and to wait to enable the full system, instead." The page adds that the deployment will take longer to complete this way.

Devices already in reduced functionality: clear the TPM first

Disruptive step: the steps below clear the TPM. Microsoft's warning: "Clearing the TPM can result in data loss." The page says clearing "causes you to lose all created keys associated with the TPM, and data protected by those keys, such as a virtual smart card or a sign-in PIN". Microsoft's recovery overview adds that clearing the TPM is an event that causes BitLocker recovery mode. The Troubleshoot the TPM page also says not to clear the TPM on a device you do not own, such as a work or school PC, "without being instructed to do so by your IT administrator", and to use functionality in the operating system and "Don't clear the TPM directly from UEFI". The device restarts, and the restart may ask a person at the keyboard to confirm. A clear cannot be undone.

The page's note: "For devices in which the TPM is already in reduced functionality mode, the TPM must be cleared before you can mitigate this issue. We recommend that you reset the TPM if it's in this state." It points to "Clear all the keys from the TPM", which is a section of Microsoft's Troubleshoot the TPM page.

First save the BitLocker recovery information. Microsoft's BitLocker recovery overview lists "Turning off, disabling, deactivating, or clearing the TPM" among the events that cause a device to enter BitLocker recovery mode. On each device that has BitLocker on, run the following in an elevated command prompt and confirm a recovery password protector is listed, then confirm the same password is stored where your organisation keeps them (Microsoft Entra ID, AD DS or a file):

manage-bde -protectors -get C:

Microsoft's page for the command says -get "Displays all the key protection methods enabled on the drive and provides their type and identifier (ID)".

Then, on the device: open the Windows Defender Security Center app, select Device security, then Security processor details, then Security processor troubleshooting, then Clear TPM. The page says "You'll be prompted to restart the computer" and that "you might be prompted to press a button to confirm that you wish to clear the TPM", and that after the restart "your TPM will be automatically prepared for use by Windows".

To undo it: a clear cannot be reversed. The keys are gone, and the page says the TPM is reset to an unowned state which Windows then initialises again. What you can restore is access: use the recovery password you confirmed first, and recreate any sign-in PIN or virtual smart card that was protected by the old keys.

Confirm the fix

  • After the clear and restart, tpm.msc no longer shows the reduced functionality message with flags 0x900.
  • Get-Tpm shows the TPM present and ready.
  • BitLocker status from manage-bde -status C: shows protection on, and the device starts without asking for the recovery key a second time.
  • A new test build from the changed task sequence finishes with tpm.msc showing the TPM as ready for use without the reduced functionality text.

What to watch afterwards

  • The task sequences that contain the "Enable BitLocker (offline)" step. Check each one has been changed, not only the one you tested.
  • The next MDT release. The page says the workaround is "until a new version of MDT is available" and does not name that version, so check Microsoft's current MDT notes before removing the workaround.
  • Recovery information for every device before its clear. Microsoft says clearing the TPM causes recovery mode, so a device whose key is not stored anywhere cannot be unlocked after the restart; confirm the key for each device first.
  • The sign-in PINs and virtual smart cards of users on cleared devices; Microsoft says they are lost with the keys.

Risks and limits

These steps have not been run or lab-tested.

The page describes Windows 10, all editions, deployed with MDT and one deployment step. It does not state the position for Windows 11, for other deployment tools, or for later MDT builds. It does not say how the reduced-functionality state appears in Get-Tpm. Its workaround command is written for the deployment environment and the page does not show the surrounding script syntax. Clearing the TPM has no undo and must be done only after the recovery information for the device is confirmed in a place you can reach without that device.

Sources