Microsoft Edge Deployment Error – Unmatched exit code (1)

Starting with Configuration Manager 1910, you can use the Create Microsoft Edge application feature to deploy the new browser. Edge is out of preview and yes there is a stable version of Edge for enterprise.

Microsoft Edge is ready for business and you can use the below guides to deploy Edge to your enterprise systems using SCCM 1910. In addition to that you can also manage Edge updates using SCCM.

When you create an Edge application, it is essentially a PowerShell script that installs Edge browser. However the Edge installation may fail and you may see the following error message.

  • Software Center: 0x1(1)
  • AppEnfore.log: Unmatched exit code (1) is considered an execution failure.

Microsoft Edge Deployment Error - Unmatched exit code (1)

If you open AppEnforce.log file on the client computer, you notice Unmatched exit code (1) is considered an execution failure. With that error, you may not know why it actually failed unless you have already dealt with such errors before.

Microsoft Edge Deployment Error - Unmatched exit code (1)

The Edge deployment fails with above error because by default, PowerShell restricts running scripts on end user PCs. The execution policy helps users to set basic rules and prevents them from violating them unintentionally. You can read more about Execution Policies here.

Microsoft Edge Deployment Error – Unmatched exit code (1)

During Microsoft Edge deployment, if you notice Unmatched exit code (1) error follow these steps :-

  • Launch Configuration Manager Console.
  • Go Software Library > Application Management > Applications.
  • Select Microsoft Edge application and in the Deployment Types Tab, right click Edge deployment and click Properties.

Edge Deployment Properties

This opens the Edge deployment type properties window. In the installation program box, add -ExecutionPolicy Bypass right after PowerShell (refer the below screenshot). Click OK. If you have 32-bit edge application, you must also add the same command.

Edge Deployment Properties

Since you have modified the application properties, you must update the content.

Update Edge Application Content

After updating the content, launch the Software Center. Select Microsoft Edge and click Install.

Microsoft Edge Deployment Error Snap6

Now the Microsoft Edge deployment works without any errors.

Microsoft Edge Deployment Error Snap7

9 Comments

  1. I use a template PS script for installing applications. In order to get this script to work I borrowed from that script. I believe the final issue was that the install line in the original Edge script could not find the MSI file. With my additions to the script and the execution policy bypass as indicated above, it works as intended.

    This is what I added:

    # assert location of installer
    
    $installerPath = $PSScriptRoot + "\" + $MSIName
    
    # Log file name
    
    $msiDescription = 'Microsoft_Edge'
    
    # build log file path
    
    $logFile = $env:SystemRoot + '\PackageLogs\' + $msiDescription + '.log'
    
    # List of arguments
    
    $argList = '/I ' + """$installerPath""" + ' /qn /L* ' + """$logFile"""
    
    # Magic happens here
    
    Start-Process msiexec.exe -ArgumentList $argList -Wait
    
    
  2. I added the execution policy bypass and can see it has run in the logs using this but the fault was the same and it hasn’t resolved it. Any ideas. Thanks in advance

  3. We have a GPO that sets the PowerShell Policy to only allow signed scripts. So I resigned the shipped MS-scipts in folders for x86 and x64 with our enterprise-certificate, updated content and thisalso works fine.

  4. Avatar photo Bernd Maier says:

    Thank You Sir, you repeatedly keep safing my ahh solving my problems.

  5. No need to update content as you did not touch the source files. The command line is stored as a policy.

  6. Damn…I feel a bit cought out, as I could have thought of this by myself but preferred to google. 🙂

    Thanks for this solution!

  7. Thanks man, a time saver for mee too.

  8. Avatar photo Rob Baker says:

    Thanks for this, saved me a lot of time!

Leave a Reply

Your email address will not be published. Required fields are marked *