Enable Method of the Win32_Tpm Class Home
Enable Method of the Win32_Tpm Class

The Enable method of the Win32_Tpm class allows the TPM owner to enable or resume the TPM.

To run this method, the TPM must already have an owner. To enable a TPM that does not already have an owner, use the SetPhysicalPresenceRequest method.

Syntax

uint32 Enable(
  [in]  string OwnerAuth
);

Parameters

OwnerAuth [in]

A string that identifies the TPM owner. This string must be a base64-encoded string that contains exactly 20 bytes of binary data. Use the ConvertToOwnerAuth method to translate a passphrase to this expected format.

Return Value

All TPM errors as well as errors specific to TPM Base Services can be returned.

The following table lists some of the common return codes.

Return code/valueDescription
S_OK
0 (0x0)

The method was successful.

TPM_E_AUTHFAIL
2150105089 (0x80280001)

The provided owner authorization value cannot perform the request.

TPM_E_DEFEND_LOCK_RUNNING
2150107139 (0x80280803)

The TPM is defending against dictionary attacks and is in a time-out period. For more information, see the ResetAuthLockOut method.

 

Remarks

Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Windows SDK. They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
MOFWin32_tpm.mof
DLLWin32_tpm.dll
Namespace\\.\root\CIMV2\Security\MicrosoftTpm

See Also

Win32_Tpm
SetPhysicalPresenceRequest

Send comments about this topic to Microsoft

Build date: 11/16/2009

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View