Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Clear-Tpm

Clear-Tpm

microsoft.tpm.commands.dll

Synopsis

Resets a TPM to its default state.

Syntax

Clear-Tpm [-OwnerAuthorization] [<CommonParameters>]

Clear-Tpm [-File] [<CommonParameters>]

Detailed Description

The Clear-Tpm cmdlet resets the Trusted Platform Module (TPM) to its default state. A reset removes the owner authorization value and any keys stored in the TPM. To reset a TPM, you must provide a valid owner authorization value. You can enter an owner authorization value or specify a file that contains the value. If you do not provide a value, the cmdlet attempts to use a value stored in the registry.

For more information on TPM, see the Trusted Platform Module Technology Overview in the Technet library at http://technet.microsoft.com/en-us/library/jj131725.aspx.

Parameters

-File <String>

Specifies a file that contains the current owner authorization value for the TPM. You can use the TPM Management Console to create this file.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-OwnerAuthorization <String>

Specifies the current owner authorization value for the TPM.

Aliases

None

Required?

false

Position

2

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

Input Type

String

Return Type

TpmObject

Notes

None

Examples

Example 1: Reset TPM

This command resets the TPM. The command uses the owner authorization value stored in the registry instead of specifying a value or using a value in a file.

PS C:\> Clear-Tpm


TpmReady           : False
TpmPresent         : True
ManagedAuthLevel   : Full
OwnerAuth          :
OwnerClearDisabled : True
AutoProvisioning   : Disabled
LockedOut          : False
SelfTest           : {191, 191, 245, 191...}

Example 2: Reset TPM with a supplied authorization value

This command resets the TPM by using the specified owner authorization value.

PS C:\> Clear-Tpm -OwnerAuthorization "vjnuW6rToM41os3xxEpjLdIW2gA="


TpmReady           : False
TpmPresent         : True
ManagedAuthLevel   : Full
OwnerAuth          : OwnerClearDisabled : True
AutoProvisioning   : Disabled
LockedOut          : False
SelfTest           : {191, 191, 245, 191...} 


Example 3: Reset TMP using authorization value from file

This command resets the TPM by using the owner authorization value included in the specified file.

PS C:\> Clear-Tpm -File "MyOwnerAuthFile.tpm"


TpmReady           : False
TpmPresent         : True
ManagedAuthLevel   : Full
OwnerAuth          :
OwnerClearDisabled : True
AutoProvisioning   : Disabled
LockedOut          : False
SelfTest           : {191, 191, 245, 191...}

Online Version
Get-Tpm
Initialize-Tpm
Unblock-Tpm