PowerShell function to determine if the processor usage of a computer is high

PowerShell function to determine if the processor usage of one or more computers is high. This is done by analyzing 3 specific performance counters. The processor usage is considered high if the counter \Processor(_Total)\% Processor Time is higher than 90 AND the counter \System\Context Switches/sec is higher than 20000 AND the counter \System\Processor Queue Length is higher than 2.

Get the most current version of this script at GitHub.

Leave a Reply

Your email address will not be published. Required fields are marked *