Application deployment

0x800700C1: Not a valid Win32 application

Windows could not run a file as a program. In SCCM the file is usually damaged, built for another CPU type, or the path has spaces and no quotes.

Hex code0x800700C1
Decimal-2147024703
NameERROR_BAD_EXE_FORMAT
Logs to readAppEnforce.log, CAS.log, execmgr.log, smsts.log

What 0x800700C1 means

0x800700C1 means Windows tried to start a file and found it is not a program it can run. The text is "%1 is not a valid Win32 application".

You see it in Software Center on a failed install and in the console under Monitoring > Deployments. On the client, check AppEnforce.log or execmgr.log. In a task sequence, check smsts.log.

Common causes

  • The installer file is damaged or cut short in the source folder or on the distribution point.
  • The program is 64-bit and the client runs 32-bit Windows, or it is built for another CPU type such as ARM64.
  • The path has spaces and no quotes, and a file such as C:\Program exists on the client.
  • The command names a file that is not a program, such as a document or a script, with no program to open it.

How to fix 0x800700C1

  1. Test the source file

    Go to the content source folder on the server. Check the file size against the vendor's download. Run the installer by hand on a test machine. If it fails there too, download it again from the vendor.

  2. Compare the file on the client with the source

    Find the content in C:\Windows\ccmcache on the client. Get the file hash there and in the source folder. If the two hashes differ, the copy on the distribution point is bad.

    In the console, open the properties of the content, go to Content Locations, select the distribution point and choose Redistribute. Then clear the bad content from the client cache and retry.

  3. Check the CPU type

    Check whether the client runs 32-bit or 64-bit Windows. Use the installer made for it. Add a requirement to the deployment type so each installer only runs on the right operating system.

  4. Quote the path and call scripts with their program

    Put quotes around any path with spaces in the install command. Then look on the client for a stray file named C:\Program and remove it if you find one.

    Start scripts with their program, for example powershell.exe -ExecutionPolicy Bypass -File install.ps1 or cscript.exe install.vbs.

Commands that help

Get the hash of a file, to compare client and source (change the path) · PowerShell
Get-FileHash -Algorithm SHA256 -Path 'C:\Windows\ccmcache\1\setup.exe'
Got a different code?

Turn any hex or decimal error code into its meaning, or search every code on this site.

Error code lookup All SCCM error codes

✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.