如何在azure窗口10更新1809虚拟机中启用tpm自动配置?

问题描述 投票:0回答:1

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

打开powershell作为管理员在azure虚拟机中运行(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                  : {}
azure powershell azure-iot-edge
1个回答
0
投票

错误消息不是因为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

© www.soinside.com 2019 - 2024. All rights reserved.