Win32_Tpm::DisableAutoProvisioning method

Disables auto provisioning of the TPM if it is currently enabled. The operation has no effect if auto provisioning is already disabled. By default, auto provisioning is enabled for Windows 8 and Windows Server 2012.

This method is only accessible by local administrators.

Syntax


uint32 DisableAutoProvisioning(
  [in, optional] BOOL OnlyForNextBoot
);

Parameters

OnlyForNextBoot [in, optional]

If set to TRUE, auto provisioning is disabled for only the next boot. If set to FALSE or not specified, auto provisioning is permanently disabled.

Return value

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

Common return codes are listed below.

Return code/valueDescription
S_OK
0 (0x0)

The method was successful.

 

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 client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Namespace

\\.\root\CIMV2\Security\MicrosoftTpm

MOF

Win32_tpm.mof

DLL

Win32_tpm.dll

See also

Win32_Tpm

 

 

Show: