Guide to activate Office 2024 using Command Prompt with ospp.vbs and fix Microsoft Office activation errors

Office Error 0x4004F00C: What It Means and How to Fix It

Last updated: 25 October 2026 · Applies to Office 2024, 2021, 2019, 2016 and LTSC

In short

Error 0x4004F00C means Office is running in its grace period: a product key is installed, but Office hasn’t been activated yet. It isn’t a fault on its own, but when the grace period runs out, most Office features are disabled. To fix it, open Command Prompt as administrator in the Office16 folder, run cscript ospp.vbs /act, then check with cscript ospp.vbs /dstatus that the status says LICENSED. If online activation fails, re-enter your key, remove leftover keys, fix your KMS settings, or activate by phone.

Key takeaways
+0x4004F00C is an informational status code, not a crash: Office is in its “out-of-box grace” period, shown as —OOB_GRACE—.
+The REMAINING GRACE line in ospp.vbs /dstatus tells you exactly how long you have before features are disabled.
+Most cases are fixed by running cscript ospp.vbs /act with an internet connection.
+Volume (KMS) copies need to reach your organisation’s KMS server; retail and MAK keys can also be activated by phone.
+Microsoft 365 doesn’t use ospp.vbs; sign in with the account that holds your subscription instead.

If you’ve run Office’s licensing script and seen ERROR CODE: 0x4004F00C, or Word and Excel keep warning you to activate, you’re in the right place. The good news: this error doesn’t mean your key is bad or your installation is broken. It means Office has been installed with a product key but hasn’t completed activation yet.

This guide explains exactly what Office error 0x4004F00C means, how to read the licence status that shows it, what happens when the grace period ends, and eight fixes in the order that solves the most cases. It covers retail, volume (KMS and MAK) and Microsoft 365 installations, with the exact commands for each.

Administrator: Command Prompt
C:\Program Files\Microsoft Office\root\Office16> cscript ospp.vbs /dstatus
—Processing————————–
LICENSE NAME: Office 24, Office24ProPlus2024R_Retail edition1
LICENSE DESCRIPTION: Office 24, RETAIL channel
LICENSE STATUS: —OOB_GRACE—2
ERROR CODE: 0x4004F00C3
ERROR DESCRIPTION: The Software Licensing Service reported that the application is running within the valid grace period.
Last 5 characters of installed product key: XXXXX
REMAINING GRACE: 4 days (5732 minute(s) before expiring)4
—Exiting—————————–
1
Licence name: which Office product and edition the status belongs to.
2
OOB_GRACE (out-of-box grace): installed, but not activated yet.
3
0x4004F00C: the code for “running within the valid grace period”.
4
Remaining grace: how long until most features are disabled. Your number will differ.
An example of ospp.vbs /dstatus output showing error 0x4004F00C. Licence names and grace times vary by Office version and licence type. Command reference: Microsoft Learn.

What Does Office Error 0x4004F00C Mean?

0x4004F00C is a status code from the Office Software Licensing Service. Its official description is: “The Software Licensing Service reported that the application is running within the valid grace period.”

In plain English: Office is installed and has a product key, but it hasn’t been activated with Microsoft (or with your organisation’s activation server) yet. Until it is, Office runs on a temporary grace period so you can keep working while activation completes.

Is 0x4004F00C an error or a warning?

It’s closer to a warning. Codes beginning 0x4 are informational, while true failures start with 0xC. Nothing is broken right now, but if Office stays unactivated until the grace period ends, it switches to reduced functionality and you won’t be able to edit or create documents.

What does OOB_GRACE mean?

OOB_GRACE stands for out-of-box grace: the licence state Office is in straight after installation, before activation. It always appears together with error 0x4004F00C. Once activation succeeds, the status changes to LICENSED and the error code disappears.

Where You’ll See Error 0x4004F00C

Licensing script
In ospp.vbs /dstatus
The most common place: the ERROR CODE line under a licence with OOB_GRACE status.
Office apps
As an activation warning
Word, Excel or Outlook show a yellow or red bar asking you to activate, sometimes with days remaining.
Activation wizard
When activation fails
The code can appear if online activation can’t complete, for example behind a firewall or proxy.
The three places error 0x4004F00C usually appears.

Why Does Office Show 0x4004F00C?

Every cause comes down to the same thing: Office has a key but hasn’t been able to activate it. These are the most common reasons:

Activation never ran
Office was installed, but the activation step was skipped or interrupted, so it’s still in its starting grace period.
No internet connection
Online activation needs to reach Microsoft’s servers. Offline PCs stay in grace until activated by phone.
Firewall, proxy or VPN blocking
Security software or a corporate proxy stops the activation request from getting through.
KMS server unreachable
Volume-licensed Office can’t find your organisation’s KMS host, often when working off the office network.
Leftover or extra licences
A trial, an old version or an unused product such as Visio is still installed and sitting in grace.
Wrong key for the edition
The key installed doesn’t match the Office edition or channel (retail vs volume), so activation can’t complete.
Wrong date and time
An incorrect clock or time zone makes activation fail, leaving Office in grace.
Activation limit reached
The key has been activated too many times online, so it needs phone activation instead.
Common causes of Office error 0x4004F00C.

How to Check Your Office Licence Status

Before fixing anything, confirm which product is in grace. You’ll use Office’s built-in licensing script, ospp.vbs.

1
Open Command Prompt as administrator
Press Start, type cmd, right-click Command Prompt and choose Run as administrator.
2
Go to the Office folder
Type cd "C:\Program Files\Microsoft Office\root\Office16" and press Enter. For 32-bit Office on 64-bit Windows, use Program Files (x86) instead.
3
Show the licence status
Run cscript ospp.vbs /dstatus and wait a few seconds.
4
Read each licence block
Look at LICENSE STATUS for every product listed. LICENSED is good; OOB_GRACE with error 0x4004F00C needs activating.
Checking your Office licence status with ospp.vbs.
cd "C:\Program Files\Microsoft Office\root\Office16"
cscript ospp.vbs /dstatus

If cd says the path can’t be found, try C:\Program Files\Microsoft Office\Office16 (without root), which some older or volume installations use.

What each licence status means

—LICENSED—
Activated
Office is fully activated. Nothing to do.
—OOB_GRACE—
Not activated, in grace
Shows with 0x4004F00C. Activate before the grace period ends.
—NOTIFICATIONS—
Not activated, grace over
Office is in reduced functionality mode. Activate to restore editing.
—UNLICENSED—
No valid licence
No working licence for this product. Install a valid key and activate.
Office licence status values shown by ospp.vbs /dstatus. Error 0x4004F00C appears with OOB_GRACE.

What Happens When the Grace Period Ends?

When the grace period runs out without activation, the licence status changes from OOB_GRACE to NOTIFICATIONS and Office goes into reduced functionality mode. You can still open and print documents, but you can’t edit, save changes or create new files, and every app shows a red warning bar:

Budget.xlsx – Excel
FileHomeInsertPage LayoutFormulasData
PRODUCT NOTICEMost features of Excel have been disabled because it hasn’t been activated.Activate1
1
The red product notice bar appears once the grace period ends. Selecting Activate opens the activation wizard.
An illustration of Excel in reduced functionality mode after the grace period expires. Microsoft’s exact wording varies by version.

Your files are never deleted. As soon as Office is activated, editing comes straight back. For volume-licensed copies, Microsoft’s KMS documentation explains that KMS clients have a 25-day window before activation notifications appear, which gives them time to find the KMS server.

How to Fix Office Error 0x4004F00C: 8 Fixes

Work through these in order. Fix 1 solves most cases. Run every command from an administrator Command Prompt in the Office16 folder, as shown above.

Fix 1: Activate Office with ospp.vbs

If Office simply hasn’t activated yet, tell it to activate now. Make sure you’re connected to the internet, then run:

cscript ospp.vbs /act
Administrator: Command Prompt
C:\Program Files\Microsoft Office\root\Office16> cscript ospp.vbs /act
—Processing————————–
Installed product key detected – attempting to activate the following product:
LICENSE NAME: Office 24, Office24ProPlus2024R_Retail edition
<Product activation successful>1
—Exiting—————————–
C:\Program Files\Microsoft Office\root\Office16> cscript ospp.vbs /dstatus
LICENSE STATUS: —LICENSED—2
1
Activation succeeded.
2
Running /dstatus again confirms the licence is now LICENSED, and error 0x4004F00C is gone.
An example of successful activation with ospp.vbs. Licence names vary by Office version.

Close and reopen Word or Excel. The activation warning should disappear. If you see a different error code instead of success, note it and continue below.

Fix 2: Re-enter your product key

If the wrong key is installed, or the key didn’t save correctly, install your key again and activate it:

cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript ospp.vbs /act

Replace the X’s with your 25-character key. The key must match your Office edition and channel: a volume key won’t activate a retail installation, and vice versa. Our guide to fixing an Office 2024 key that isn’t working explains how to check and match them.

Fix 3: Fix date, time, firewall and proxy settings

  • Date and time: Settings › Time & language › Date & time. Turn on Set time automatically and Set time zone automatically, then select Sync now.
  • VPN and proxy: disconnect any VPN, and turn off Use a proxy server in Settings › Network & internet › Proxy (unless your IT team requires it).
  • Firewall and antivirus: pause third-party firewalls or security suites while you activate, then turn them back on.
  • Run cscript ospp.vbs /act again.

Microsoft lists the same checks in its guide to Unlicensed Product and activation errors in Office.

Fix 4: Remove leftover or unused product keys

If /dstatus shows a product you don’t use sitting in OOB_GRACE, such as an old trial or an extra app, remove its key. Find the Last 5 characters of installed product key line in that licence block, then run:

cscript ospp.vbs /unpkey:XXXXX

Replace XXXXX with those five characters, then run /dstatus again. Only remove keys for products you don’t want; removing your main key will leave Office unlicensed. If an entire old Office version is still installed, uninstall it from Settings › Apps › Installed apps and restart.

Fix 5: Point volume Office to your KMS server

If /dstatus shows VOLUME_KMSCLIENT in the licence description, Office activates against your organisation’s KMS host, not Microsoft. Connect to your work network (or work VPN), then set the KMS host and activate:

cscript ospp.vbs /sethst:kms.yourcompany.com
cscript ospp.vbs /act

Ask your IT team for the correct host name. To return to automatic discovery later, run cscript ospp.vbs /remhst. All of these options are documented in Microsoft’s tools to manage volume activation of Office.

Fix 6: Activate by phone

If online activation keeps failing for a retail or MAK key, for example because the key has reached its online activation limit after reinstalls, activate by phone:

1
Show your Installation ID
Run cscript ospp.vbs /dinstid. Note the long number it displays.
2
Call Microsoft’s activation line
In Word, go to File › Account › Activate Product and choose to activate by telephone to see the number for your country.
3
Give the Installation ID
Enter it when the automated system asks. Answer honestly that Office is installed on one PC.
4
Enter the Confirmation ID
Run cscript ospp.vbs /actcid:CONFIRMATIONID with the number you’re given, or type it into the activation window.
Phone activation steps for Office using ospp.vbs.

Fix 7: Repair Office

If activation commands fail with unexpected errors, the licensing files may be damaged. Go to Settings › Apps › Installed apps, find Microsoft Office, select Modify, choose Online Repair and follow the prompts. It reinstalls Office files without touching your documents. Then run cscript ospp.vbs /act again.

Fix 8: Check the key with the seller

If you’ve tried everything and activation still fails, run cscript ospp.vbs /dhistoryacterr to see the activation failure history, and note any error codes it shows. If the key itself is rejected (for example with 0xC004C008, key already used), see our guide to “This product key has already been used”. If you bought from Noxkeys, contact our support team with your order number and a screenshot of the /dstatus output.

Status is OOB_GRACE, internet works
Activation hasn’t run yet.
Fix: Run cscript ospp.vbs /act (Fix 1).
Activation says the key is invalid
Wrong key or wrong edition installed.
Fix: Re-enter the right key with /inpkey (Fix 2).
Activation can’t connect
Clock, firewall, proxy or VPN.
Fix: Fix date and network settings (Fix 3).
Extra product in grace
Leftover trial or unused app.
Fix: Remove its key with /unpkey (Fix 4).
Licence says VOLUME_KMSCLIENT
KMS host can’t be reached.
Fix: Connect to work network, use /sethst (Fix 5).
Online activation refused
Activation limit reached.
Fix: Activate by phone (Fix 6).
Quick reference: match what you see to the right fix.

Fixing 0x4004F00C on Microsoft 365

Microsoft 365 subscriptions activate differently. According to Microsoft, the ospp.vbs script doesn’t work for Microsoft 365 Apps, so the fixes above don’t apply. Instead:

  • Open Word, go to File › Account and make sure you’re signed in with the Microsoft account (or work account) that holds the subscription.
  • Check the subscription is active at account.microsoft.com/services, or with your IT admin for work accounts.
  • Sign out of all Office apps, close them, then sign back in.
  • Use the Get Help app and search for Office activation to run Microsoft’s troubleshooter.
  • IT admins can run Microsoft’s vnextdiag.ps1 PowerShell script to check Microsoft 365 licence status.

Not sure whether you have Microsoft 365 or a one-time Office licence? Our comparison of Office 2024 vs Microsoft 365 vs LibreOffice explains the difference.

0x4004F00C
Running in the grace period
Installed but not activated yet. Activate before grace ends.
0xC004F009
Grace period expired
Activation didn’t happen in time. Activate to restore full features.
0xC004F074
KMS server unreachable
Volume Office can’t contact a KMS host. Check network and KMS settings.
0xC004C008
Key can’t be used
Usually already activated elsewhere. Remove it from the old PC or activate by phone.
0xC004F050
Key is invalid
The key is mistyped or doesn’t match the installed product.
0xC004C003
Key is blocked
The activation server has blocked the key. Contact the seller.
Office activation codes you may see alongside 0x4004F00C. Use cscript ospp.vbs /ddescr:CODE to look up any code. Source: Microsoft Learn.

How to Prevent Error 0x4004F00C

  1. Activate straight after installing, while you’re on a normal home or office internet connection.
  2. Use a key that matches your installation: retail keys for retail Office, volume keys for volume Office.
  3. Uninstall old versions and trials before installing a new Office.
  4. Keep your clock on automatic so time and time zone are always correct.
  5. Avoid unnecessary reinstalls, which can use up online activations. Use Online Repair instead.
  6. Buy from a seller that supports you, so you can get help if activation fails.

Need a Genuine Office Licence?

If your current key can’t be activated, a genuine Office licence from Noxkeys is delivered instantly by email, with download and activation instructions and lifetime support if anything goes wrong.

Microsoft Office 2024 Professional Plus
Latest version · one-time purchase
Office 2024 Professional Plus
Word, Excel, PowerPoint, Outlook and Access.
View Office 2024
Microsoft Office 2021 Professional Plus
Previous version
Office 2021 Professional Plus
Note: Microsoft support ended October 2026.
View Office 2021

Browse all Microsoft Office licences, read our FAQ, or find more fixes on the Noxkeys blog.

Frequently Asked Questions

What does error code 0x4004F00C mean?

It means Office is running within its valid grace period: a product key is installed, but Office hasn’t been activated yet. The licence status shows as OOB_GRACE.

Is 0x4004F00C a serious error?

Not on its own. It’s an informational status. It only becomes a problem if Office isn’t activated before the grace period ends, when most features are disabled.

How do I fix 0x4004F00C?

Open Command Prompt as administrator in the Office16 folder and run cscript ospp.vbs /act. Then run cscript ospp.vbs /dstatus to confirm the status says LICENSED.

How long is the Office grace period?

It depends on the licence type and Office version. The REMAINING GRACE line in ospp.vbs /dstatus shows exactly how many days and minutes you have left.

What does OOB_GRACE mean in Office?

OOB_GRACE means out-of-box grace: Office is installed with a product key but not yet activated. It always appears together with error code 0x4004F00C.

What happens when the grace period expires?

The status changes to NOTIFICATIONS and Office goes into reduced functionality mode. You can open and print files, but can’t edit or create them until you activate. Your files aren’t deleted.

Does ospp.vbs work for Microsoft 365?

No. Microsoft says ospp.vbs doesn’t work for Microsoft 365 Apps. Sign in with the account that holds your subscription instead, or use the Get Help app.

Why does dstatus show one product licensed and another with 0x4004F00C?

A second product, such as an old trial or an unused Visio or Project licence, is installed but not activated. If you don’t use it, remove its key with cscript ospp.vbs /unpkey:XXXXX.

Where is ospp.vbs located?

Usually in C:\Program Files\Microsoft Office\root\Office16. For 32-bit Office on 64-bit Windows, it’s under Program Files (x86). Some installations omit the root folder.

Can I fix 0x4004F00C without the internet?

Yes, by phone activation. Run cscript ospp.vbs /dinstid to get your Installation ID, call Microsoft’s activation line, then enter the Confirmation ID with cscript ospp.vbs /actcid.

Leave a Reply

Your email address will not be published. Required fields are marked *


Instant Delivery

Get instant delivery by email

Secure Payments

100% protected transactions

Replacement or Refund

Key doesn’t work? We’ll replace it or refund you

Free activation support

Help with installing & activating