Fix Office error 12002-4, 12007-4 and 12152-4

The error codes 12002-4, 12007-4 and 12152-4 appear when Office cannot be installed over the internet. Microsoft names the internet connection, the antivirus program, the firewall or the proxy settings as the cause. All three codes stand for the same point: the connection to the Microsoft servers cannot be established. Your product key is not affected by this.

Quick decision

Message Meaning according to Microsoft What you do
12002-4, 12007-4, 12152-4 Connection, antivirus, firewall or proxy prevents installation over the internet Offline installer, cable, different network, check proxy and protection

The steps apply to Office 2024, 2021, 2019 and 2016 on Windows 11 and Windows 10.

What the code means

Microsoft describes the cause like this: you see the codes 12002-4, 12007-4 or 12152-4 when your internet connection, your antivirus software, your firewall or your proxy settings prevent the installation of Office over the internet. Setup downloads the program files during the installation; if that connection is disrupted or too slow, it fails with one of these codes.

Diagnosis

  1. Test the connection. Open a web page. If it loads slowly or fails, the connection is the likely cause.
  2. Identify security programs and proxy. Note the antivirus, the firewall and whether a proxy or a company network is involved.

Step by step

Microsoft names the following solutions. Try to install again after each step.

  1. Use the offline installer. With a slow or fluctuating connection, the offline installer first downloads Office completely and then sets it up. This is Microsoft’s first recommendation.
  2. Use a wired connection. If you install over Wi-Fi, connect the device with a network cable and try again.
  3. Try a different network. In a company or school network, the installation may be blocked. Take the device home or use a different connection.
  4. Turn off the proxy. If you use the device at home and at work, turn off the proxy settings in Microsoft Edge before the installation. Turn them back on afterwards.
  5. Turn off antivirus and firewall briefly. A VPN can look suspicious to Microsoft servers; turn it off and restart the download. Turn the protection back on after the installation.

Alternative routes

If the error remains, remove leftovers of an interrupted attempt with Microsoft’s uninstall support tool, restart and install once more. If Office is already partly set up, check it with the online repair via Installed apps › Modify.

When is the key the cause?

With these codes, never. They arise while downloading the program files, before the license is checked. You only activate Office after the installation. If activation then shows an error, the
Office activation guide helps. If your key is from us and is rejected, report it via “Report a problem” in your order.

Related guides

Frequently asked questions

Why does Office download data during the installation at all? The modern Office installation (Click-to-Run) transfers the program files during setup. That is why it needs a stable connection, and that is why a proxy or firewall disrupts it.

What is the offline installer? An installation package that first downloads Office completely and then sets it up without an active connection. Microsoft recommends it first with a slow connection.

Do I have to turn off the proxy permanently? No. Turn it off only for the installation and back on afterwards, so your network access stays unchanged.

Does a failure use up my product key? No. The key is only used during activation after the installation.

What helps in a company network? Often a central filter blocks the Microsoft servers. Use the offline installer, a different network, or ask the IT department to unblock it.

Sources

Checked on 2026-11-30 against the publisher’s information:

Cookies and Google services

With your consent we use Google Analytics (statistics) as well as Google's rating widget and Customer Reviews (Google services). In doing so, data is sent to Google, including to the USA. Declining has no disadvantages; you can change your choice at any time under “Cookie settings” in the page footer. Privacy policy