Thermal Zone Temperature

Created the Saturday 26 September 2020. Updated 2 years ago.

The temperature sensor is used to know the current temperature of a machine. In a non-virtualized environment, the function returns valid support and output like: “25.05 C: 77.09 F: 298.2K”. But for a fully virtualized environment, the return is “MSAcpi_ThermalZoneTemperature not supported” because this feature is not supported on virtualized processors.

Interestingly, this method is not valid. Not all Windows machines will support this method due to incompatibility with thermal zone sensors. It is a BIOS function. Sometimes the BIOS manufacturer provides dlls that can be referenced to call the required function and return the details.

Many malware authors use it to detect virtual machines, but it frequently fails due to lack of vendor support.

Technique Identifier


Technique Tags

thermal temperature

Code Snippets



If the return is “MSAcpi_ThermalZoneTemperature not supported, it means you are in a virtualized environment.
Reference :

function Get-AntiVMwithTemperature {
    $t = Get-WmiObject MSAcpi_ThermalZoneTemperature -Namespace "root/wmi"
    $valorTempKelvin = $t.CurrentTemperature / 10
    $valorTempCelsius = $valorTempKelvin - 273.15
    $valorTempFahrenheit = (9/5) * $valorTempCelsius + 32
    return $valorTempCelsius.ToString() + " C : " + $valorTempFahrenheit.ToString() + " F : " + $valorTempKelvin + "K"  

Additional Resources

External Links

Subscribe to our Newsletter

The information entered into this form is mandatory. It will be subjected to computer processing. It is processed by computer in order to support our users and readers. The recipients of the data will be :

According to the Data Protection Act of January 6th, 1978, you have at any time, a right of access to and rectification of all of your personal data. If you wish to exercise this right and gain access to your personal data, please write to Thomas Roccia at

You may also oppose, for legitimate reasons, the processing of your personal data.