In this blog post, I will show you how to fix Intune Win32 app install error 0x80070002. When a Win32 app deployment fails in Microsoft Intune with 0x80070002, the failure almost always means Windows could not find a file referenced during execution. In practical terms, Intune successfully delivered your Win32 content to the device, but the install or uninstall command line points to a file or path that is not present at runtime, so the process cannot start. On Intune admin center, you will see an error message: The system cannot find the file specified (0x80070002).

What does 0x80070002 mean?
0x80070002 maps to the Windows “file not found” condition. You typically see it when you specify a command in Win32 app deployment that references:
- a file name that does not exist (typo, wrong file name).
- an incorrect path (hard-coded path not present on the device).
- a file that was not packaged into the .intunewin content.
- a missing file extension (common for .exe).
Before you start
Before changing your app configuration, collect evidence from the device so you can identify and address the correct root cause. Collect and review Intune Management Extension (IME) logs from the Windows device. Win32 app execution details are recorded in the IME logs located at C:\ProgramData\Microsoft\IntuneManagementExtension\Logs.
Open the latest IntuneManagementExtension.log and AgentExecutor.log files to identify any failures. Determine whether the failure occurred during the Install or Uninstall phase, as the remediation steps depend on which command is failing.
Here is a screenshot from the Intune Management Extension log file (IntuneManagementExtension.log) related to the Notepad++ app deployment. As shown in the log, the specified InstallCommandLine is npp.8.5.4.Installer.x64 /S instead of npp.8.5.4.Installer.x64.exe /S. The missing file extension in the command caused the application deployment to fail. To fix the issue, correct the install command in the Win32 app deployment.

Intune Error Code 0x80070002
As observed in the IME logs above, the Win32 app deployment install command is incorrect. Let’s open the Win32 app deployment and correct the command.
- Sign in to the Intune admin center > Apps > All Apps.
- Click on the Win32 app deployment. For example, Notepad++.
- Click on Properties and then click on Edit next to Program.
Fix 1: Misconfigured Install Command Example
The screenshot below shows the misconfigured install command. You will notice that the .exe file extension is missing from the command.

Update Install Command
The screenshot below shows the correct Install command with the file extension included. If you identify an issue with the Uninstall command, correct it as well and save the application. The app will automatically redeploy to the target Entra group.

Conclusion
In this blog post, we’ve discussed resolving the Win32 app deployment error 0x80070002, which occurs when incorrect Install or Uninstall commands are specified. When the Install command is inaccurate, the Intune Management Extension cannot install the application on the device, leading to this error message.
It’s best practice to manually test the application’s Install or Uninstall on a test device using the command line to ensure the Install command is correct. If the command works correctly, you can create an app deployment, including file extensions for the installers.
