IsEnabled method of the Win32_Tpm class

The IsEnabled method of the Win32_Tpm class indicates whether the device is enabled. This value can be changed by the Enable and Disable methods.

Syntax

uint32 IsEnabled(
  [out] boolean IsEnabled
);

Parameters

IsEnabled [out]

Type: boolean

If true, the device is enabled.

Return value

Type: uint32

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

Common return codes are listed below.

Return code/value Description
S_OK
0 (0x0)
The method was successful.

 

Remarks

According to the Trusted Computing Group (TCG) v1.2 specification only the following commands are available when the device is in a deactivated state.

  • TPM_ContinueSelfTest
  • TPM_DSAP
  • TPM_FlushSpecific
  • TPM_GetCapability
  • TPM_GetTestResult
  • TPM_Init
  • TPM_OIAP
  • TPM_OSAP
  • TPM_OwnerSetDisable
  • TPM_PCR_Reset
  • TPM_PhysicalDisable
  • TPM_PhysicalEnable
  • TPM_PhysicalSetDeactivated
  • TPM_Reset
  • TPM_SaveState
  • TPM_SelfTestFull
  • TPM_SetCapability
  • TPM_SHA1Complete
  • TPM_SHA1Start
  • TPM_SHA1Update
  • TPM_Startup
  • TPM_TakeOwnership
  • TPM_Terminate_Handle

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 client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Namespace
Root\CIMV2\Security\MicrosoftTpm
MOF
Win32_tpm.mof
DLL
Win32_tpm.dll

See also

Win32_Tpm

Disable

Enable