使用 Powershell 脚本查找 TpmPin

问题描述

我需要一个 PS 脚本,它会根据 TpmPin 是否存在于“KeyProtector”中而产生 True 或 False(见附图)

我试过了:

$res3 = Get-BitLockerVolume -MountPoint C
if ($res3 -like 'Tpm'){write 'True'} else {write 'false'}

但即使值在那里,也总是得到“假”。 see screen shot

我尝试了在本网站其他地方找到的一些示例片段,它们有效:

$coll = 'one','two','three','four'
if ($coll -contains 'two'){write 'True'} else {write 'false'}

这会根据需要返回 T/F。

我做错了什么? 谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)