How to Deactivate Office on an Old PC Before Selling or Reinstalling

How to Deactivate Office on an Old PC Before Selling or Reinstalling

By MCAKey Technical Team

You’re about to sell your old laptop. Or maybe you’re wiping it clean for a fresh Windows install. Either way, you just realized Microsoft Office is still activated on that machine — and you paid good money for that license. Now what?

If you skip this step, your Office license stays tied to hardware you no longer own. That means when you try to activate Office on your new PC, you’ll hit error 0x80070005 or see “This product key has already been used” staring back at you. Frustrating doesn’t begin to cover it.

The good news: you can deactivate Office on an old PC in about five minutes. And I’m going to walk you through every method, including the one Microsoft’s own documentation buries three clicks deep.

Deactivate Office on an Old PC

Quick Answer: How to Deactivate Office on an Old PC

Quick Answer

To deactivate Office on an old PC, open any Office app, go to File > Account, and click “Sign out” to remove your Microsoft account. Then uninstall Office completely through Windows Settings > Apps. For Microsoft 365 subscriptions, visit account.microsoft.com/services, select your subscription, and click “Manage installs” to deactivate the device remotely. This frees the license for use on another computer.

What Causes Office to Stay Activated After You’re Done With a PC

1. The license is device-linked, not just account-linked.
Microsoft ties Office activations to specific hardware IDs. Simply signing out of your Microsoft account doesn’t automatically release that hardware slot.

2. You have a retail or OEM license with install limits.
Retail Office 2021, for example, allows installation on only one PC at a time. OEM licenses (the ones that came pre-installed) can’t transfer at all — they die with the hardware.

3. Microsoft 365 tracks active installations.
Your subscription allows Office on up to 5 PCs simultaneously. But if you hit that limit without cleaning up old machines, the sixth attempt fails with error code 0x80004005.

4. The previous owner never signed out.
Bought a used PC? The old owner’s Office activation might still be lingering, blocking your own license from activating.

How to Fix Office Activation Issues by Properly Deactivating

Solution 1: Sign Out and Uninstall Office Through Windows Settings

This is the standard approach and works for most situations. In my experience, this is the fix that works about 80% of the time for retail and Microsoft 365 licenses.

First, open any Office application (Word, Excel, Outlook — doesn’t matter).

Click File in the top-left corner, then select Account from the sidebar.

Under “User Information,” click Sign out. Confirm when prompted.

Now uninstall Office completely. Open Windows Settings:

ms-settings:appsfeatures

Scroll to find Microsoft Office or Microsoft 365, click the three dots, and select Uninstall.

Once uninstallation completes, restart the PC. The activation is now cleared from this device.

Solution 2: Deactivate Office on an Old PC Remotely via Your Microsoft Account

Sold the computer already? Gave it away without thinking about Office first? You can still deactivate remotely — but only for Microsoft 365 subscriptions, not perpetual licenses like Office 2021.

Go to account.microsoft.com/services and sign in.

Find your Microsoft 365 subscription and click Manage.

Select Manage installs or Install apps (Microsoft keeps renaming this).

You’ll see a list of every PC where Office is installed under your account. Find the old device and click Sign out or Deactivate.

This immediately frees up one installation slot. The next time someone opens Office on that old PC, they’ll be prompted to sign in — which they can’t do with your credentials.

Solution 3: Use the Office Removal Tool for Stubborn Installations

Sometimes a normal uninstall leaves fragments behind. Registry keys. Licensing files. Cached credentials. And those fragments can cause error 0xC004F074 when you try activating on new hardware.

Microsoft provides an official removal tool that nukes everything Office-related.

Download the Microsoft Support and Recovery Assistant from Microsoft’s Office support hub.

Run the tool and select Office as the product.

Choose I have Office installed, but I’m having trouble uninstalling it.

Let the tool run. It removes all Office apps, clears licensing data, and cleans up registry entries.

WARNING: This removes ALL Office products — if you have both Office 2019 and Microsoft 365 installed, both will be wiped.

After the tool finishes, restart your PC. You can now reinstall Office fresh on your new machine without activation conflicts.

Solution 4: Deactivate Using Command Line (Advanced)

If you prefer working from the command prompt — or you’re doing this on multiple machines — there’s a faster method.

Open Command Prompt as Administrator:

cmd

(Right-click and select “Run as administrator”)

Navigate to your Office installation folder. For 64-bit Office 2021/365 on 64-bit Windows:

cd "C:Program FilesMicrosoft OfficeOffice16"

For 32-bit Office on 64-bit Windows:

cd "C:Program Files (x86)Microsoft OfficeOffice16"

Now run the licensing script to check current activation:

cscript ospp.vbs /dstatus

You’ll see the last 5 characters of your product key and the license status.

To remove the license, use:

cscript ospp.vbs /unpkey:XXXXX

Replace XXXXX with those last 5 characters from the previous command’s output.

This strips the license without uninstalling Office. Handy if you’re giving the PC to a family member who has their own Office license.

How to Prevent Activation Headaches in the Future

Keep a record of which devices have Office installed. Your Microsoft account shows this under “Install apps,” but I recommend a simple spreadsheet too. Note the device name, install date, and license type.

Before any PC leaves your possession, deactivate Office on that old PC first. Make it part of your pre-sale checklist alongside backing up files and signing out of browsers.

Consider Microsoft 365 for flexibility. Unlike perpetual licenses, Microsoft 365 lets you deactivate remotely anytime. Worth it if you upgrade hardware frequently. You can find current Microsoft Office and 365 options with genuine product keys.

Use your Microsoft account, not a local activation. Account-linked installations are easier to manage and transfer than those activated with standalone product keys.

Frequently Asked Questions

Can I transfer my Office license to a new computer after I deactivate it?

u003cpu003eYes, if you have a retail license or Microsoft 365 subscription. OEM licenses (pre-installed by the PC manufacturer) cannot transfer — they’re permanently tied to the original hardware. To transfer a retail license, deactivate Office on the old PC, then install and activate on the new one using the same product key or Microsoft account.u003c/pu003e

What happens if I sell my PC without deactivating Office first?

u003cpu003eThe new owner will eventually be prompted to sign in or enter a product key. They won’t have access to your licensed Office apps. For Microsoft 365, you can still deactivate the device remotely through account.microsoft.com. For perpetual licenses, the activation remains on the hardware until that machine is reformatted.u003c/pu003e

Why does my Office show error 0x80070005 when activating on a new PC?

u003cpu003eError 0x80070005 means u0022Access Deniedu0022 and typically appears when your license is still tied to another device. Deactivate Office on your old PC first, wait a few minutes for Microsoft’s servers to sync, then retry activation. If the old PC is inaccessible, use the remote deactivation method through your Microsoft account.u003c/pu003e

How many computers can I install Microsoft Office on at the same time?

u003cpu003eMicrosoft 365 Personal allows 5 PCs or Macs plus 5 tablets and 5 phones. Microsoft 365 Family allows up to 6 users, each with 5 device installs. Perpetual licenses like Office 2021 Home u0026amp; Student or Office 2021 Professional allow only 1 PC. Exceeding these limits triggers activation failures until you deactivate Office on an old PC. If you’re still running into Deactivate Office on an Old PC after trying the steps above, work through them once more in order — most cases resolve without needing anything further. Deactivate Office on an Old PC can usually be resolved by working through the steps above in order — most cases don’t need anything more advanced than that. Keep this guide handy in case Deactivate Office on an Old PC comes up again later, since the same steps apply every time. Working through the checks above in order resolves Deactivate Office on an Old PC for most people the first time. If Deactivate Office on an Old PC keeps coming back, double-check that you completed each step above fully before trying anything else. Most people resolve Deactivate Office on an Old PC within a few minutes once they know exactly where to look. If none of the steps above resolve Deactivate Office on an Old PC, it’s worth revisiting each one carefully before assuming something more serious is going on. Deactivate Office on an Old PC is one of the most common questions we get, and also one of the easiest to resolve once you know where to check.u003c/pu003e

Conclusion

Clearing Office from an old machine takes five minutes but saves hours of activation troubleshooting later. Whether you sign out manually, use Microsoft’s removal tool, or deactivate remotely through your account — just don’t skip this step before selling or reformatting. For more activation guides covering Windows and Office products, visit our Help Center.

Still stuck? Contact MCAKey support at https://mcakey.com/contact-us/ — we typically respond within a few hours.

Save on your order — use code FIXIT10

Limited-time, limited-use offer. Redeem it before it's gone.

Need a license?

Genuine Software license keys — instant delivery, no waiting.

Browse Licenses