We help IT Professionals succeed at work.
Get Started

Use imagecfg.exe to use 4 out of 8 cores

Last Modified: 2013-12-10
How can I set imagecfg.exe to use 4 out of 8 cores rather than an single core or all 8 cores.

To set a process's affinity use "imagecfg -a MASK [File Path] [File Name]

  0    0x1
  1    0x2
  2    0x4
  3    0x8
  4    0x10
  5    0x20
  6    0x40
  7    0x80
  8    0x100

So if you wanted to set C:\Test\Dummy.exe to use the second CPU(CPU1) ir would look like this:
imagecfg -a 0x2 C:\Test\Dummy.exe

So would assigning more than one core look like this?
imagecfg -a 0x1 0x2 0x4 0x8 C:\Test\Dummy.exe
Watch Question
Most Valuable Expert 2019
Most Valuable Expert 2018
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE