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

Popular posts from this blog

SOLVED: Exchange Online Management PowerShell Connect-ExchangeOnline bug "A window handle must be configured. See https://aka.ms/msal-net-wam#parent-window-handles"

System error 86 has occurred. The specified network password is not correct.

The security identifier of the "NT SERVICE\WdiServiceHost" account is "S-1-5-80-3139157870-2983391045-3678747466-658725712-1809340420"