Import-TpmOwnerAuth
Imports a TPM owner authorization value to the registry.
Syntax
File
Import-TpmOwnerAuth
-File <String>
[<CommonParameters>]
Owner Auth
Import-TpmOwnerAuth
[-OwnerAuthorization] <String>
[<CommonParameters>]
Description
The Import-TpmOwnerAuth cmdlet imports a valid Trusted Platform Module (TPM) owner authorization value to the registry.
For more information on TPM, see the Trusted Platform Module Technology Overview in the Technet library.
Examples
Example 1: Import an owner authorization value
PS C:\> Import-TpmOwnerAuth -OwnerAuthorization "Qn2sdCFQmvjf+tBtSWH4GT87sQs="
TpmReady : False
TpmPresent : True
ManagedAuthLevel : Full
OwnerAuth : Qn2sdCFQmvjf+tBtSWH4GT87sQs=
OwnerClearDisabled : True
AutoProvisioning : DisabledForNextBoot
LockedOut : False
SelfTest : {191, 191, 245, 191...}
This command imports the specified owner authorization value to the registry.
Example 2: Import an owner authorization value from a file
PS C:\> Import-TpmOwnerAuth -File "OwnAuthFile.tpm"
TpmReady : False
TpmPresent : True
ManagedAuthLevel : Full
OwnerAuth : OwnerClearDisabled : True
AutoProvisioning : DisabledForNextBoot
LockedOut : False
SelfTest : {191, 191, 245, 191...}
This command imports the owner authorization value in the specified file to the registry.
Parameters
-File
Specifies a file that contains the current owner authorization value for the TPM. You can use the TPM Management Console to create this file.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
File
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-OwnerAuthorization
Specifies the current owner authorization value for the TPM.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | o |
Parameter sets
Owner Auth
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
String
Specifies the owner authorization value for the TPM.
Outputs
TpmObject
This cmdlet returns a TpmObject object that contains the following information:
- TpmReady. Whether a TPM complies with Windows ServerĀ® 2012 standards.
- TpmPresent. Whether there is a TMP on the current computer.
- ManagedAuthLevel. The level at which the operating system manages the owner authorization. Possible values are Legacy, Balanced, and Full.
- OwnerClearDisabled. Whether TPM can be reset. If this value is True, the TPM cannot be reset through the operating system by using the owner authorization value. If this value is False, the TPM can be reset through the operating system.
- AutoProvisioning. Whether the computer can use auto-provisioning. Possible values are NotDefined, Enabled, Disabled, and DisabledForNextBoot.
- LockedOut. Whether a TPM is locked out.
- SelfTest. Information returned by a test that TPM runs.