Calling 64-bit windows applications from %windir%\System32 in a Software Delivery or Asset Management job

Document ID : KB000009621
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

The Software Delivery and Asset Management agents are 32-bit applications.

In a 64-bit OS the folder %windir%\System32 is reserved for 64-bit applications. When a 32-bit application attempts to access this they are redirected to %windir%\SysWOW64.

This results in the 32-bit version of the application being called.

In some instances this will cause the application to fail as it cannot perform the requested action. 

For example the 32-bit DISM.EXE cannot service a running 64-bit operating system and you will receive the error:

"Deployment Image Servicing and Management tool 
Version: 10.0.10240.16384 
Error: 11 
You cannot service a running 64-bit operating system with a 32-bit version of DISM. 
Please use the version of DISM that corresponds to your computer's architecture." 

Instructions:

It is possible to tell windows not to redirect the call to the application by substituting %windir%\Sysnative for %windir%\System32.

for example if your script called %windir%\system32\Dism.exe you need to change this to %windir%\Sysnative\Dism.exe

Additional Information:

The File System Redirector is documented by Microsoft here.

The Sysnative alias was added starting with Windows Vista.