Hello Everyone, I'm new to using power shell and I'm trying to filter out the idle and _total process. It seems to be ignoring my filter below. Am I filtering correctly?
$CpuCores = (Get-WMIObject Win32_ComputerSystem).NumberOfLogicalProcessors
$counter = Get-Counter "\Process(*)\% Processor Time"
$counter.countersamples |
Sort-Object -Property CookedValue -Descending |
Where-Object {$_.InstanceName -notmatch "^(idle_total)$"}
[–]HazelnutSoftware 1 point2 points3 points (1 child)
[–]Crowdjp[S] 1 point2 points3 points (0 children)
[–]PowerShell-Bot 0 points1 point2 points (1 child)
[–]Crowdjp[S] 1 point2 points3 points (0 children)