The Microsoft-Windows-TPM-Tasks-ClearTpm setting specifies whether to clear the Trusted Platform Module (TPM) during Windows setup.

Clearing the TPM prevents an issue in earlier versions that kept some Windows features from working if the TPM was incorrectly set.



Do not clear the TPM. Default value.


Clear the TPM only when Windows has taken ownership of the TPM.


Always clear the TPM.

Parent Hierarchy

Microsoft-Windows-TPM-Tasks | ClearTpm

Valid Configuration Passes


Applies To

For a list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-TPM-Tasks.

XML Example

The following XML shows how to use the <ClearTpm> setting in an unattend file.

<?xml version="1.0" encoding="UTF-8"?>

-<unattend xmlns="urn:schemas-microsoft-com:unattend">

-<settings pass="specialize">

-<component language="neutral" xmlns:xsi="" xmlns:wcm="" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-TPM-Tasks">




<cpi:offlineImage xmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="wim:c:/wims/14993/install.wim#Windows 10 Pro Insider Preview"/>