【问题标题】:how to enable tpm auto provisioning in azure window 10 update 1809 virtual machine?如何在 azure window 10 update 1809 虚拟机中启用 tpm 自动配置?
【发布时间】:2019-04-24 20:29:42
【问题描述】:

我有 azure 虚拟机(Windows 10 更新 1809 和 vm 大小为标准 D2s v3(2 vcpus,8 GB 内存)),其中使用 TPM 为带有设备配置服务的 iotedge 开发解决方案。无法使用 Enable-TpmAutoProvisioning powershell 命令自动配置。

在 azure 虚拟机中以管理员身份打开 powershell (Window 10 update 1809),在 powershell 中运行 Enable-TpmAutoProvisioning 命令

PS C:\Users\dev> Enable-TpmAutoProvisioning

得到下面给出的错误消息

TpmPresent                : False
TpmReady                  : False
ManufacturerId            : 0
ManufacturerIdTxt         :
ManufacturerVersion       :
ManufacturerVersionFull20 :
ManagedAuthLevel          : Full
OwnerAuth                 :
OwnerClearDisabled        : True
AutoProvisioning          : NotDefined
LockedOut                 : False
LockoutHealTime           :
LockoutCount              :
LockoutMax                :
SelfTest                  :



PS C:\Users\dev> TpmReady           : False
TpmReady : The term 'TpmReady' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ TpmReady           : False
+ ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (TpmReady:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\dev> TpmPresent         : True
TpmPresent : The term 'TpmPresent' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ TpmPresent         : True
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (TpmPresent:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\dev> ManagedAuthLevel   : Full
ManagedAuthLevel : The term 'ManagedAuthLevel' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ ManagedAuthLevel   : Full
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (ManagedAuthLevel:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\dev> OwnerAuth          : OwnerClearDisabled : True
OwnerAuth : The term 'OwnerAuth' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ OwnerAuth          : OwnerClearDisabled : True
+ ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (OwnerAuth:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\dev> AutoProvisioning   : Enabled
AutoProvisioning : The term 'AutoProvisioning' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ AutoProvisioning   : Enabled
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (AutoProvisioning:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\dev> LockedOut          : False
LockedOut : The term 'LockedOut' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ LockedOut          : False
+ ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (LockedOut:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\dev> SelfTest           : {191, 191, 245, 191...}
At line:1 char:43
+ SelfTest           : {191, 191, 245, 191...}
+                                           ~
You must provide a value expression following the '..' operator.
At line:1 char:43
+ SelfTest           : {191, 191, 245, 191...}
+                                           ~
Unexpected token '.' in expression or statement.
At line:1 char:43
+ SelfTest           : {191, 191, 245, 191...}
+                                           ~
Missing expression after '.' in pipeline element.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ExpectedValueExpression

PS C:\Users\dev>


In Azure virtual machine(Windows 10 update 1809), After running 
PS C:\Users\dev> Enable-TpmAutoProvisioning

output should be
TpmPresent                : True
TpmReady                  : True
ManufacturerId            : 1229346816
ManufacturerIdTxt         : IFX
ManufacturerVersion       : 7.63
ManufacturerVersionFull20 : 7.63.13.6400

ManagedAuthLevel          : Full
OwnerAuth                 :
OwnerClearDisabled        : False
AutoProvisioning          : Enabled
LockedOut                 : False
LockoutHealTime           : 10 minutes
LockoutCount              : 0
LockoutMax                : 31
SelfTest                  : {}

【问题讨论】:

  • 嗨 @dreamgeek,你找到在 Azure 上实现它的方法了吗?

标签: azure powershell azure-iot-edge


【解决方案1】:

错误消息不是因为Enable-TpmAutoProvisioning 命令。您似乎在命令末尾粘贴了一些额外的文本。请确保您正确运行命令。

例如:

PS C:\Users\dev> TpmReady           : False
TpmReady : The term 'TpmReady' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ TpmReady           : False
+ ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (TpmReady:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

您似乎在 powershell 窗口中错误地粘贴了PS C:\Users\dev> TpmReady : False

请运行Enable-TpmAutoProvisioning

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多