Documentation: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.diagnostics/get-counter?view=powershell-5.1
Show all available counters, be careful, this seems to be language dependent
get-counter -listset * | Out-GridView
get-counter -listset "*Netzwerk*" | fl
get-counter -listset "*Netzwerk*" | % { $_.Counter }
Show all available processes
get-process | Out-GridView -PassThru
Show network data of
get-counter -Counter "\Prozess(ms-teams)\E/A-Bytes gelesen/s" -Continuous | ft
Get all counters of a process every ten seconds
$procCounter = get-counter -listset "Prozess" | % { $_.Counter }
get-counter $procCounter.replace("*", "ms-teams") -Continuous -SampleInterval 10
This could help if you need to rebuild the performance counters: https://learn.microsoft.com/en-us/troubleshoot/windows-server/performance/manually-rebuild-performance-counters