The Wayback Machine - https://web.archive.org/web/20090519204808/http://msdn.microsoft.com:80/en-us/library/aa376478(VS.85).aspx
SetPhysicalPresenceRequest Method of the Win32_Tpm Class

The SetPhysicalPresenceRequest method of the Win32_Tpm class requests a TPM operation that requires physical presence. After you have used this method to submit a request, apply the next step indicated in the GetPhysicalPresenceTransition method. Finally, use the GetPhysicalPresenceResponse method to check whether the operation ran successfully.
These steps are necessary because physical presence operations can run only after the computer has detected the physically present user.

Syntax

MOF

uint32 SetPhysicalPresenceRequest(
  [in]  uint32 Request
);

Parameters

Request [in]

An integer value that specifies the requested TPM operation that requires physical presence.

ValueMeaning
0

No request.

Use this value to clear a pending request.

1

Enable the TPM.

This operation is reversed by operation 2.

For more information, see the following related methods that do not involve physical presence: Enable and IsEnabled.

2

Disable the TPM.

This operation is reversed by operation 1.

For more information, see the following related method that does not involve physical presence: Disable.

3

Activate the TPM.

This operation is reversed by operation 4.

4

Deactivate the TPM.

This operation is reversed by operation 3.

5

Clear the TPM.

This operation cannot be reversed.

For more information, see the following related method that does not involve physical presence: Clear.

6

Enable and activate the TPM.

This operation is reversed by operation 7.

7

Deactivate and disable the TPM.

This operation is reversed by operation 6.

8

Allow the installation of a TPM owner.

This operation is reversed by operation 9.

9

Prevent the installation of a TPM owner.

This operation is reversed by operation 8.

10

Enable, activate, and allow the installation of a TPM owner.

This operation is reversed by operation 11.

11

Deactivate, disable, and prevent the installation of a TPM owner.

This operation is reversed by operation 10.

14

Clear, enable, and activate the TPM.

This operation cannot be reversed.

 

Return Value

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

Return code/valueDescription
S_OK
0 (0x0)

The method was successful.

Use the GetPhysicalPresenceTransition method to determine the next step that is needed.

TPM_E_PPI_NOT_SUPPORTED
2150171395 (0x80290303)

The computer does not support TPM physical presence operations by using this method.

Consult your computer manufacturer for more information. Your computer's BIOS may have alternate support for configuring the TPM.

TPM_E_PPI_ACPI_FAILURE
2150171392 (0x80290300)

A hardware failure occurred.

Consult your computer manufacturer for more information.

 

Remarks

TPM physical presence operations do not require TPM owner authorization. However, they do require additional steps to help protect against unauthorized changes to the TPM.

Computers that support TPM physical presence operations will attempt to detect the physically present user before running the operation. While computers may differ in how this detection is performed, the idea is to have a physically present user or administrator authorize the operation.

For example, the computer may require the user to restart the computer. After the computer is restarted, the computer can display a BIOS confirmation dialog box that allows the user to confirm the operation by using the keyboard.

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
Enable
IsEnabled
Disable
Clear

Send comments about this topic to Microsoft

Build date: 4/23/2009



MSDN Library
Win32 and COM Development
Security
Security WMI Providers
Security WMI Providers Reference
Trusted Platform Module Provider
Win32_Tpm
SetPhysicalPresenceRequest Method
Tags: 
 
Community Content