To force Internet Explorer (IE) to download files instead of opening them, you can enable "Automatic prompting for file downloads" as follow:
- Open Internet Explorer on the Windows 10 machine.
- Click on the gear icon in the top-right corner to open the Tools menu.
- Select "Internet Options" from the dropdown menu. A new window will open.
- In the Internet Options window, navigate to the "Security" tab.
- Within the Security tab, select the "Internet" zone and click on the "Custom level..." button.
- A list of security settings will appear. Scroll down until you find the "Downloads" section.
- Find the option labelled "Automatic prompting for file downloads" and set it to "Enable."
- Scroll down further until you find the "File Download" option.
Set the "File Download" option to "Enable."
- Click "OK" to save the changes and close the window.
- Restart Internet Explorer for the changes to take effect.
Once you have completed these steps, Internet Explorer should prompt the user to download the XLSX file instead of automatically opening it.