ResetSrkAuth method of the Win32_Tpm class
The ResetSrkAuth method of the Win32_Tpm class resets the Storage Root Key (SRK) authorization value to be compatible with the operating system.
Syntax
uint32 ResetSrkAuth(
[in, optional] string OwnerAuth
);
Parameters
-
OwnerAuth [in, optional]
-
Type: string
A string that identifies the TPM owner. This string must be a base64-encoded null-terminated string that contains exactly 20 bytes of binary data. Use the ConvertToOwnerAuth method to translate a passphrase to this expected format. The OwnerAuth parameter is read from the registry if none is provided.
Return value
Type: uint32
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/value | Description |
---|---|
|
The method was successful. |
|
The provided owner authorization value cannot fulfill the request. |
|
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
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Namespace |
Root\CIMV2\Security\MicrosoftTpm |
MOF |
|
DLL |
|
See also