ImageCFG

From Rob86Wiki

Jump to: navigation, search
I pretty much copy-pasted this from my old website and wiki-formatted it, so it's all old information.

To download the ImageCFG affinity mask tool, visit File:Imagecfg.zip

Copy imagecfg.exe to %systemroot%\system32 (or C:\Windows\system32), and %systemroot%\system32\dllcache (or C:\Windows\system32\dllcache). Doing so will make imagecfg a system command.

This tool only works on NT based operating systems (Windows NT, 2000 Family, XP Family, 2003 Family, Vista, 7).

It will work on Multiprocessor machines and Uniprocessor machines with HyperThreading Technology (and multicore processors).

I was unable to find any documentation for this tool on Microsoft's website.

To use this tool to set affinity masks for an executable, type the following command in a command prompt window or run dialog:

imagecfg -a 0x1 c:\path\to\file.exe

If the above didnt work, try typing the following:

imagecfg -u c:\path\to\file.exe
imagecfg -a 0x1 c:\path\to\file.exe
  • 0x1 = CPU0 (first logical/physical CPU)
  • 0x2 = CPU1 (second CPU)
  • 0x3 = CPU2 (third CPU)
  • etc...


These tools are also handy to have:
How to Install and Use the Interrupt-Affinity Filter Tool
IntFilt is also included in the Windows Server 2003 Resource Kit Tools (Also works with XP)
Personal tools
Navigation