0xc0000005 MSIEXEC error when trying to install anything

Andy Gillogly 0 Reputation points
2025-11-24T22:15:39.6933333+00:00

I've already set KDC to manual as upon joining a 2025 standard server to the domain, you cannot log in. Agent I have installed already has not been able to update, apparently an alpha feature was shipped with 2025 enabled by default. After attempting to install a different agent as a promoted DC, nothing will install that uses MS Installer. The experience with 2025 has been very poor.

Faulting application name: MSIEXEC.EXE, version: 5.0.26100.5074, time stamp: 0xe074eae8

Faulting module name: msi.dll, version: 5.0.26100.7019, time stamp: 0xede27e4b

Exception code: 0xc0000005

Fault offset: 0x001591d2

Faulting process id: 0x2850

Faulting application start time: 0x1DC5D8DF137F680

Faulting application path: C:\WINDOWS\SysWOW64\MSIEXEC.EXE

Faulting module path: C:\WINDOWS\System32\msi.dll

Report Id: c5997bf7-e1ed-46f8-8d89-e05a6801f7b9

Faulting package full name:

Faulting package-relative application ID:

Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
{count} votes

3 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-24T22:15:51.7966667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error code 0xc0000005 indicates an access violation, which typically occurs when a program tries to read or write to a memory location that it does not have permission to access. In your case, this error is occurring during the installation process using MSIEXEC, which is related to the Windows Installer service.

    Here are some steps you can take to troubleshoot this issue:

    1. Verify Updates: Ensure that your Windows Server 2025 is fully updated. Sometimes, installing the latest updates can resolve underlying issues with system components like the Windows Installer.
    2. Check for Corrupted Files: Run the System File Checker tool to check for and repair corrupted system files. You can do this by opening an elevated Command Prompt and running the command:

    sfc /scannow

    
    3. **Antivirus Software**: If you have antivirus software installed, make sure it is up to date and check if it is interfering with the installation process. You may want to temporarily disable it to see if that resolves the issue.
    
    4. **Windows Error Reporting (WER)**: Check the Windows Error Reporting logs for more detailed information about the crash. You can enable verbose logging for the process to gather more data.
    
    5. **WMI Issues**: Since you mentioned issues with agents and installations, verify that the Windows Management Instrumentation (WMI) service is functioning correctly. You can test the WMI service by running:
    

    wmic /namespace:\root\default Class StdRegProv Call GetDWORDValue hDefKey="&H80000002" sSubKeyName="SYSTEM\CurrentControlSet\Services\Winmgmt" sValueName=Start

    If there are issues, you may need to repair the WMI repository using:
    

    winmgmt /salvagerepository

    1. Event Viewer: Check the Event Viewer for any additional error messages or warnings that might provide more context about the failure.

    If the problem persists after trying these steps, you may need to consider reinstalling the Windows Installer service or seeking further assistance from Microsoft support.


    References:

    0 comments No comments

  2. Hailey Huong Bui 2,360 Reputation points Independent Advisor
    2025-11-25T00:51:58.0933333+00:00

    Hi Andy,

    From your description, it looks like you’re encountering a combination of two known issues: (1) an early release alpha feature related to Kerberos and domain security being enabled by default in some Server 2025 builds, and (2) instability within the MSI Engine that prevents any installer relying on MSIEXEC.exe from running correctly. When joining the server to the domain, the KDC service switching to manual mode can temporarily bypass the login issue, but it does not address the deeper problem introduced by the alpha feature conflict.

    The exception code 0xc0000005 in msi.dll indicates an access violation, which typically occurs when a system component is corrupted, blocked, or replaced by an incompatible module. In many Server 2025 preview builds, this happens when MSI tries to load security related components that are out of sync with the OS version. The fact that both promoted DC installation and basic agent updates fail strongly suggests that MSI is unable to initialize its required security context.

    To fix this, please apply the newest Cumulative Update (CU) for Windows Server 2025, which includes patches specifically addressing MSI instability and the alpha Kerberos feature being active by default. If MSI is broken and Windows Update cannot initiate, you can manually download and install the .MSU package - the standalone installer does not rely on the MSI subsystem and is often successful even in this scenario.

    After installing the CU, please reboot the server and run the following commands to check system integrity:

    • sfc /scannow: this will repair corrupted system binaries including msi.dll if needed.
    • DISM /Online /Cleanup - Image /RestoreHealth: this will rebuild the servicing stack and fix component store mismatches that cause MSI failures.

    If you suspect the agent installed earlier may have interfered with MSI, I recommend temporarily uninstalling or disabling it after the update, then reinstalling the newest version once MSI functionality is restored. Also, ensure the server is not running a preview/Insider build production environments should always use GA builds to avoid alpha-feature regressions.

    After these steps, please restore the KDC service to its default automatic startup, as leaving it in manual mode can create authentication inconsistencies, especially on domain controllers. Once the MSI subsystem is back to normal, you should be able to promote the server and install agents without encountering the msiexec.exe crashes.

    Please "accept the answer" so that it could be spread further to those in need too. If not, is there anything I can help you with? Please let me know.


  3. Hailey Huong Bui 2,360 Reputation points Independent Advisor
    2025-11-25T14:58:49.2133333+00:00

    Hi Andy Gillogly

    I think at this point, the most reliable path forward is to perform an in-place upgrade repair using the most recent Windows Server 2025 ISO available through VLSC or the Evaluation Center. This process reinstalls core system binaries (including MSI and KDC components) without affecting your applications or data, and has been successful in restoring stability on similarly impacted systems.

    Additionally, you may want to verify that the following remain disabled, even if the KDC service is set to Manual:

    • The Kerberos Key Distribution Center Next-Gen feature flag under HKLM\SYSTEM\CurrentControlSet\Services\Kdc

    Any domain-wide GPO objects that may have enabled the alpha KDC feature during earlier testing or deployments

    If the server was ever promoted while the feature was active, some schema or security provider components may also require manual cleanup which I can help guide you through once we confirm the repair install results. Please let me know once you’ve had a chance to run the in-place upgrade or if you'd like step-by-step instructions.

    Thank you

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.