Suppose I'm running a (power)shell on a Windows machine.
Is there a one-liner I could use to get:
- The number of physical processor cores and/or
- The max number of in-flight threads, i.e. cores * hyper-threading factor?
Note: I want just a single number as the command output, not any headers or text.