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

[玩转系统] 使用 PowerShell 获取 BitLocker 状态

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

使用 PowerShell 获取 BitLocker 状态


使用 PowerShell 命令manage-bde -status 获取计算机中卷的 BitLocker 状态。它有一个Protection Status属性,指示保护是打开还是关闭。

如果驱动器上有 BitLocker 驱动器加密,则返回结果为“保护打开”,否则返回“保护关闭”。

在本文中,我们将讨论如何使用 PowerShell 命令获取 BitLocker 状态。

使用 PowerShell 检查 BitLocker 状态

要使用 PowerShell 检查 BitLocker 状态,请打开 PowerShell 终端“以管理员身份运行”并运行以下命令。

manage-bde -status

上述 PowerShell 脚本 manage-bde -status 的输出获取 PowerShell 中的 BitLocker 状态。它在卷上有一个Protection Status 属性,用于指示 BitLocker 保护是打开还是关闭。

酷提示:如何使用 PowerShell 获取 BitLocker 恢复密钥!

显示 BitLocker 状态的 PowerShell 脚本

用于检查 BitLocker 状态的 PowerShell 命令是 Get-BitLockerVolume 命令。它有一个 ProtectionStatus 属性,用于存储 BitLocket 状态的打开或关闭。

使用 PowerShell 中的 Get-BitLockerVolume cmdlet 显示 BitLocker 状态。

Get-BitLockerVolume

上述 PowerShell 脚本的输出获取驱动器 C 和 D 驱动器的 BitLocker 状态。 C 驱动器的 BitLocker 状态保护开启,而 D 驱动器的 BitLocker 状态保护为关闭

[玩转系统] 使用 PowerShell 获取 BitLocker 状态

酷提示:如何使用 PowerShell 获取 adcomputer BitLocker 恢复密钥!

结论

我希望上述有关使用 PowerShell 命令获取 BitLocker 状态的文章对您有所帮助。

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

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

取消回复欢迎 发表评论:

关灯