0x8007007E: The specified module could not be found
Windows could not load a DLL or program file that the job needs. In SCCM a missing runtime or a wrong path in the install command is the usual cause.
What 0x8007007E means
0x8007007E is the Windows code ERROR_MOD_NOT_FOUND, "The specified module could not be found". In Configuration Manager you see it in Software Center, in AppEnforce.log, in smsts.log and sometimes in ccmsetup.log.
A module is a DLL or another program file. A process tried to load one and Windows could not find it. The file that is missing is often not the installer itself. It is a file that the installer depends on.
Common causes
- The installer needs a runtime, such as a Visual C++ redistributable, that is not on the computer.
- The install command calls a file that is not in the content.
- The install runs as a 32-bit process and looks in the 32-bit system folder for a 64-bit file.
- A system file of Windows or of the client is missing or damaged.
- Antivirus software removed a file from the client cache.
How to fix 0x8007007E
-
Read the command and exit code in AppEnforce.log
Open
C:\Windows\CCM\Logs\AppEnforce.log. Note the command line and the working folder underC:\Windows\ccmcache. Open that folder on the client. Confirm that every file the command names is there. -
Install the missing runtime
Run the installer by hand on a test computer that fails. Windows often names the missing DLL in a message box. Find out which runtime holds that DLL. Deploy it first, and add it on the Dependencies tab of the deployment type.
-
Check 32-bit and 64-bit paths
The client can run an install as a 32-bit process. Windows then redirects
C:\Windows\System32toC:\Windows\SysWOW64. A file that exists only in the 64-bit folder is then not found. For a package, useC:\Windows\Sysnativein the command line. For an application, clear the option to run the program as a 32-bit process on 64-bit clients. -
Repair system files
If the missing module is part of Windows, run the code block below in an elevated prompt and restart. If it is part of the Configuration Manager client, reinstall the client.
Commands that help
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* -ErrorAction SilentlyContinue |
Where-Object { $_.DisplayName -like '*Visual C++*' } |
Select-Object DisplayName, DisplayVersion
Turn any hex or decimal error code into its meaning, or search every code on this site.