当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] PowerShell Get-TPM - 获取 Tpm 信息

作者:精品下载站 日期:2024-12-14 17:03:50 浏览:14 分类:玩电脑

PowerShell Get-TPM - 获取 Tpm 信息


PowerShell 中的 TrustedPlatformModule 有一个 Get-Tpm 命令,用于获取包含当前计算机上 TPM 信息的 TpmObject。

当前计算机上的 Tpm(可信平台模块)信息包括,如果 TPM 已就绪、如果 TPM 存在、获取 Tpm 版本、TPM 已启用、LockeOutCount 等...

在本文中,我们将讨论如何使用 PowerShell Get-Tpm 命令检索当前计算机的可信平台模块信息。

PowerShell 获取 Tpm

Get-Tpm PowerShell 命令显示有关 TPM 的信息。

句法 :

Get-Tpm

打开 PowerShell 终端“以管理员身份运行” 并键入命令 Get-Tpm。

Get-Tpm

PowerShell 脚本中的此命令获取 TPM 对象,该对象包含存储 Tpm 信息的不同属性。

上述用于检索 TPM 信息的 PowerShell 脚本的输出是:

PS C:\> Get-Tpm

TpmPresent                : True
TpmReady                  : True
TpmEnabled                : True
TpmActivated              : True
TpmOwned                  : True
RestartPending            : True
ManufacturerId            : 1413143054
ManufacturerIdTxt         : INTC
ManufacturerVersion       : 7.2.0.2
ManufacturerVersionFull20 : 7.2.0.2

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

Get-Tpm 返回一个 TpmObject 对象,其中包含以下信息:

  1. TpmReady - TPM 是否符合 Windows Server 2012 标准。
  2. TpmPresent - 当前计算机上是否安装了 Tpm。
  3. TpmEnabled - 当前计算机上是否启用 Tpm。
  4. TpmActivated - Tpm 是否在当前计算机上激活。
  5. TpmOwned - Tpm 是否拥有。
  6. RestartPending - 当前计算机上是否需要重新启动挂起。
  7. 制造商版本 - 获取当前计算机上的 Tpm 版本。
  8. LockedOut - TPM 是否被锁定。
  9. LockoutCount - 失败尝试次数
  10. LockoutMax - 失败尝试的限制。
  11. LockoutHealTime - 修复时间,直到您可以解锁 TPM。

结论

希望上面关于如何在PowerShell中使用Get-Tpm命令获取当前计算机上TPM信息的文章对您有所帮助。

您可以在 ShellGeek 主页上找到有关 PowerShell Active Directory 命令和 PowerShell 基础知识的更多主题。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯