I'm trying to display the number of context switches during one second in PowerShell. I've so far been trying the Get-Counter -Counter "System\Context Switches/sec"
with both " " and ' ' and both leads to the error:
Get-Counter : Internal performance counter API call failed. Error: c0bc4
I'm aware of the perfmon's ability to show this, I need it displayed as text in Powershell.