Install Office Professional Plus 2024, 2021 or 2019 with the Office Deployment Tool

Updated · About 20–30 min

Volume keys only activate the volume edition of Office. Microsoft distributes it through the free Office Deployment Tool (ODT), which downloads Office straight from Microsoft’s servers. You only need Notepad and a command prompt.

Before you start

  • Remove every other Office version, including Microsoft 365 trials (how).
  • Know which version your key is for: 2024, 2021 or 2019. They are not interchangeable.
  • Keep the PC online during the install. Office downloads from Microsoft as it installs.

1. Download the Office Deployment Tool

  1. Download the tool from the Microsoft Download Center.
  2. Create a folder, for example C:\ODT.
  3. Run the downloaded file, accept the license and extract it to C:\ODT. You get setup.exe and some sample files.
Office Deployment ToolMicrosoft Download Centermicrosoft.com ↗

2. Create configuration.xml

Open Notepad, paste the configuration for your version, and put your key in PIDKEY.

VersionProduct IDChannel
Office LTSC Professional Plus 2024ProPlus2024VolumePerpetualVL2024
Office LTSC Professional Plus 2021ProPlus2021VolumePerpetualVL2021
Office Professional Plus 2019ProPlus2019VolumePerpetualVL2019
configuration.xml for Office 2024
<Configuration>
  <Add OfficeClientEdition="64" Channel="PerpetualVL2024">
    <Product ID="ProPlus2024Volume" PIDKEY="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX">
      <Language ID="en-us" />
    </Product>
  </Add>
  <RemoveMSI />
  <Display Level="Full" AcceptEULA="TRUE" />
</Configuration>
Configuration for Office 2021
configuration.xml for Office 2021
<Configuration>
  <Add OfficeClientEdition="64" Channel="PerpetualVL2021">
    <Product ID="ProPlus2021Volume" PIDKEY="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX">
      <Language ID="en-us" />
    </Product>
  </Add>
  <RemoveMSI />
  <Display Level="Full" AcceptEULA="TRUE" />
</Configuration>
Configuration for Office 2019
configuration.xml for Office 2019
<Configuration>
  <Add OfficeClientEdition="64" Channel="PerpetualVL2019">
    <Product ID="ProPlus2019Volume" PIDKEY="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX">
      <Language ID="en-us" />
    </Product>
  </Add>
  <RemoveMSI />
  <Display Level="Full" AcceptEULA="TRUE" />
</Configuration>
  1. In Notepad, choose File › Save as, open the folder C:\ODT, set Save as type to All files and name it configuration.xml.
  2. To install in another language, change en-us, for example to fr-fr, de-de or vi-vn.
  3. To skip an app, add a line like <ExcludeApp ID="Access" /> inside the Product element.
Office Customization Toolconfig.office.comconfig.office.com ↗

3. Install Office

  1. Search for cmd, right-click it and choose Run as administrator.
  2. Run:
    Command
    cd /d C:\ODT
    setup.exe /configure configuration.xml
  3. The Office installer window opens and downloads Office. When it finishes, the command prompt returns.

4. Activate

With the key in PIDKEY, Office activates on its own once it reaches Microsoft. Open Word and check File › Account. If it isn’t activated, use these commands in an administrator command prompt:

  1. Go to the Office folder:
    Command
    cd /d "C:\Program Files\Microsoft Office\Office16"
    For 32-bit Office on 64-bit Windows the folder is C:\Program Files (x86)\Microsoft Office\Office16. Office 2019, 2021 and 2024 all use Office16.
  2. Enter the key:
    Command
    cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
  3. Activate:
    Command
    cscript ospp.vbs /act
  4. Check:
    Command
    cscript ospp.vbs /dstatus
    Look for LICENSE STATUS: ---LICENSED---.

Bought a phone-activation key? See Activate Office by phone.

If it fails

MessageWhat to do
0xC004C008 in osppThe key has reached its activation limit. Ask your seller for a replacement.
0xC004F074 or a KMS errorThe key was not applied. Run /inpkey again, then /act.
0xC004F050 or “key is invalid”The key is for another version. Check 2019, 2021 or 2024 and reinstall with the matching configuration.
“Something went wrong” during installUsually another Office is still installed or the download was interrupted. Remove all Office, restart and run setup again.
Deploy Office LTSC 2024Microsoft Learnlearn.microsoft.com ↗

Key still not working?

Contact the seller you bought the key from. Reply to your order message with the error code or a screenshot: they can check the key and replace it if needed. We don’t sell keys and can’t check or replace them.