A Managed Software Delivery (MSD) policy for Internet Explorer (IE) 10 or IE 11 succeeds on some computers and fails on others with exit code 40007.
The behavior seems to be random and does not require installing prerequisite updates as suggested by code 40007. Running the installation again on a computer that failed with exit code 40007 will eventually result in a successful install.
Make sure that the Managed Software Delivery (MSD) policy has a working detection rule and give it a repeating schedule to continue retrying the installation on computers that have failed to install the new version of IE. A detection rule always runs before the software installation and will prevent the installation attempt if it finds the computer to already have the software installed.
Instructions on creating a detection rule for Internet Explorer:
To open the Software page from within the MSD policy page open the Software tab and then double click on the large blue text of the software's name.
In the Rules tab, click New on the Detection rule line.
Name the rule (such as Iexplore.exe File Version 11).
Click the blue + button then select Operators>Or.
Select the Or operator that was just created under the And operator.
Click the blue
+ button to add a new expression. Select
Standard Rule>File Version.
File path box, add the path (no quotes) to the IE executable file: C:\Program Files\Internet Explorer\iexplore.exe
Version type to
Select an operator for the
Version must be option. For example, for IE 11, use
[ ] and enter 11.0 in the left and 11.99 in the right text boxes.
OK to close the
File Version window.
Repeat steps 6 through 10 to create another File Version rule under the Or operator but this time specify this alternate path to the IE executable file: C:\Program Files (x86)\Internet Explorer\iexplore.exe
OK to close the
Create Rule window, and click
OK to close the software release window. The MSD policy should automatically update to use the detection rule.
Figure 1. An example of a detection rule to detect IE11 based on the file version of iexplore.exe.
Subscribing will provide email updates when this Article is updated. Login is required.