Search code examples
windowspowershellwmi

How to get Virtual Server Temperature via PowerShell?


I can get the Physical Server temperature by using the

Win32_PerfFormattedData_Counters_ThermalZoneInformation (temperature) 

command in PowerShell.

However, the same command is not possible in the virtual machine.

Can I know how to get server temperature in a virtual machine?


Solution

  • A virtual server (VM) as the name suggests is virtual and has no physical presence. So it cannot have a temperature.

    You can only get the temperature of the physical host on which the VM resides.

    You will need to query the temp of the physical host.