Using code from garlin, I think I came up with a string that can query cpu thread count and apply to registry keys if desired. I wanted to double check the code, especially with @garlin to make sure I did it correctly. Also I wanted to simply share it if someone finds it useful.
Code:
for /f "tokens=2 delims=^=" %%t in ('wmic cpu get NumberOfLogicalProcessors /value ^| find "="') do set Threads=%%t
Code:
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Ndis\Parameters" /v "MaxNumRssThreads" /t REG_DWORD /d "%%t" /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "MaxNumRssThreads" /t REG_DWORD /d "%%t" /f
- Windows Build/Version
- Windows 11 27729
My Computer
System One
-
- OS
- Windows 11 27729
- Computer type
- PC/Desktop
- CPU
- i9 13900kf @5.7ghz all P-Cores
- Motherboard
- Aorus Master Z790
- Memory
- 32gb DDR5 7200
- Graphics Card(s)
- RTX 4090
- Other Info
- https://www.github.com/shoober420