Symptom:
After you install Windows 10 security updates, the Excel reports are no
longer created and the following error is reported in the MRE’s report log
file:
Unexpected error: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070520.
Cause:
Security updates from Microsoft prevent use of DCOM objects from any user but the interactive user.
Solution:
To change the DCOM settings for Excel application complete the following steps:
- Click the Windows Start button and enter dcomcnfg.
Note: If you running
32-bit version of Office on a 64-bit Windows OS, follow these steps
- Click the Windows Start button and type cmd, then click Run as administrator
- Type the following
command
MMC compex.msc /32
- Click the icon to run the DCOM configuration console.
- Expand the DCOM Config node and scroll to the Microsoft Excel application node.
- Right-click and select Properties.
- Navigate to the Identity tab.
- Select The interactive user option.
In order to ensure the correct user is logged in, enable automatic log on.
Please follow these steps (for a complete guide, please refer to
https://support.microsoft.com/en-us/help/324737/how-to-turn-on-automatic-logon-in-windows)
- Click the Windows Start button and type “regedit”
- Click the icon to launch the Registry editor
- Locate the
key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
- Locate the entry DefaultUserName. If the entry does not exist, right-click on the Winlogon key and select New -> String value. Rename the new entry as DefaultUserName
- Double-click on the entry DefaultUserName. Enter a Windows account name who has the rights to run Excel (it to strongly recommended to use the same user the MRE service runs as)
- Locate the entry DefautPassword. If the entry does not exist, right-click on the Winlogon key and select New -> String value. Rename the new entry as DefaultPassword
- Double-click on the entry DefaultPassword. Enter the password of the Windows account
- Locate the entry AutoAdminLogon. If the entry does not exist, right-click on the Winlogon key and select New -> String value. Rename the new entry as AutoAdminLogon
- Double-click on the entry AutoAdminLogon. Change the value to 1
- If you have joined the computer to a domain, you should add the DefaultDomain value, and the data for the value should be set as the fully qualified domain name (FQDN) of the domain.
- Exit Registry Editor.
- Restart the PC