How is CPU Utilization calculated for Windows servers?

How is CPU Utilization calculated for Windows servers?

To get CPU Utilization stats, we execute the below WMI query twice in 2000 ms time gap. Calculate the difference between the two values and find the percentage:

Select * from Win32_PerfRawData_PerfOS_Processor where Name='_Total'