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

[玩转系统] PowerShell 检查 TPM 是否存在

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

PowerShell 检查 TPM 是否存在


Get-Tpm PowerShell 命令用于检查当前计算机中是否存在 TPM。它具有存储布尔值的"TpmPresent" 属性。如果存在 TPM,则值为“True”,如果未安装 TPM,则值为“False”。

[玩转系统] PowerShell 检查 TPM 是否存在

Get-Tpm PowerShell 命令获取 TpmObject 详细信息,其中包含有关 Tpm 的信息,例如 tpm 版本、TpmPresent、TpmReady、TPm 是否被锁定等...

在本文中,我们将讨论如何使用 PowerShell Get-Tpm 命令检查当前计算机中是否安装了 TPM。

使用 PowerShell 检查 Tpm 是否存在

在 PowerShell 中使用 Get-Tpm 命令及其 TpmPresent 属性来检查 tpm 是否已安装并存在。

Get-Tpm | Select TpmPresent

PowerShell 命令 Get-Tpm 使用 TpmPresent 属性检查当前计算机上是否安装了 TPM,并返回布尔值。

上述 PowerShell 脚本的输出检查 Tpm 是否可用。它返回 TpmPresent 值“True”,这意味着 Windows 中存在 TPM。

PS C:\> Get-Tpm | Select TpmPresent                                                                                         
TpmPresent
----------
      True

酷提示:如何在cmd中检查TPM状态!

结论

希望上述有关如何使用 PowerShell Get-Tpm 命令检查 Windows 中是否安装了 TPM 的文章对您有所帮助。

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

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

取消回复欢迎 发表评论:

关灯