Get the hardware manufacturer name of the TPM in Windows PowerShell from Win32_TPM WMI class
When using the Win32_TPM class you can get the manufacturer name from the ManufacturerIdTxt property on Windows Server 2019 and above.
For older operating systems you can convert the numeric ManufacturerId property to it's string value using the following PowerShell command as the value is actually an ASCII encoded string stored as an integer.
$tpm = Get-CimInstance -Namespace "root\CIMV2\Security\MicrosoftTpm" -ClassName "Win32_Tpm";
$bytes = [System.BitConverter]::GetBytes($tpm.ManufacturerId);
[System.Array]::Reverse($bytes);
$manufacturer = [System.Text.Encoding]::ASCII.GetString($bytes);
Comments
Post a Comment