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.
ospp.vbs /dstatus tells you exactly how long you have before features are disabled.cscript ospp.vbs /act with an internet connection.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.
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
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:
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.
cd "C:\Program Files\Microsoft Office\root\Office16" and press Enter. For 32-bit Office on 64-bit Windows, use Program Files (x86) instead.cscript ospp.vbs /dstatus and wait a few seconds.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
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:
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
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 /actagain.
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:
cscript ospp.vbs /dinstid. Note the long number it displays.cscript ospp.vbs /actcid:CONFIRMATIONID with the number you’re given, or type it into the activation window.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.
cscript ospp.vbs /act (Fix 1)./inpkey (Fix 2)./unpkey (Fix 4)./sethst (Fix 5).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.ps1PowerShell 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.
Related Office Activation Error Codes
cscript ospp.vbs /ddescr:CODE to look up any code. Source: Microsoft Learn.How to Prevent Error 0x4004F00C
- Activate straight after installing, while you’re on a normal home or office internet connection.
- Use a key that matches your installation: retail keys for retail Office, volume keys for volume Office.
- Uninstall old versions and trials before installing a new Office.
- Keep your clock on automatic so time and time zone are always correct.
- Avoid unnecessary reinstalls, which can use up online activations. Use Online Repair instead.
- 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.
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.
