是否可以使用powershell识别active directory计算机的TPM版本?以下脚本可以工作,但必须打开计算机:
$Computers = Get-ADComputer -Filter * -Properties $Properties
$FormattedComputers = foreach ($_ in $Computers) {
[Array] $Tpm = Get-WmiObject -class Win32_Tpm -namespace root\CIMV2\Security\MicrosoftTpm -ComputerName $_.Name
if ($Tpm) {
$TpmVersion = $Tpm[0].PhysicalPresenceVersionInfo
} else {
$TpmVersion = $null
}
}
您是否知道是否有任何对象可以使用Get-ADObject捕获并提供给我该信息?
谢谢
转载请注明出处:http://www.sywsjj.net/article/20230330/1777148.html