I am using the start /AFFINITY [n] [.exe] command to start an executable with the specified affinity. I have a system with 8 processors (1,2,3,4,5,6,7,8). I\'d
To get right HEX number imagine your cores in plane format 8765 4321 (for 8-core CPU) in backward direction (but NOT like 1234 5678)
To get cores 7, 6 and 3 activated, type number 0x64 for affinity:
/AFFINITY 0x64
For better look, match and compare: 0110 0100 - number = 0x64 (8765 4321) - cores
For @ladenedge example: /AFFINITY AA 1010 1010 - number = 0xAA (8765 4321) - cores
See also: Start an Application Assigned to a Specific CPU in Windows 7, 8, or Vista