Cart0

Guide · 4 min read

0xC0000022 Activation Error: Access Denied in the Licensing Service

Updated

0xC0000022 Activation Error: Access Denied in the Licensing Service

Short answer: The 0xC0000022 activation error stands for access denied inside the Windows licensing service. We'd restart, run the Activation troubleshooter, start the Software Protection service and repair system files with the two built-in tools. System Restore comes next. Manual permission changes from forums are the step to avoid.

The 0xC0000022 activation error is Windows’ way of saying “access denied” from deep inside. The service that handles licensing was refused access to something it needs. No key gets checked at that point, so a new key won’t help. We’d repair Windows first.

Step Risk
Restart, troubleshooter, service start None
System file repair None
Security software check, System Restore Low
Changing owners and permissions of system files High; we’d leave that alone

Microsoft’s activation errors page doesn’t list this number at all. No article on the access-denied side either. So we keep to the safe steps here and say plainly where the risky advice begins.

Got a different code on screen? Look it up in our error code lookup.

What the 0xC0000022 activation error stands for

The number belongs to Windows’ basic status codes. Its meaning is fixed: a process asked for access to an object and wasn’t allowed.

In activation the process is the Software Protection service. It reads and writes license data in a few protected folders and registry keys.

When the rights on those places are damaged, or something locks them, the service can’t work. We found the same reading in answers on Microsoft’s Q&A site: the service lost its access rights.

This isn’t the same as running a command without administrator rights. That mistake gives 0x80070005, and a right-click fixes it.

What Microsoft’s list says about 0xC0000022

Nothing, as it turns out. The activation errors page has no line for 0xC0000022. Closest thing there: a group about a busy activation server, with 0xC0000272 in it. Looks almost the same.

Codes in that line Microsoft’s explanation
0xC0000272, 0xD0000272 The activation server is temporarily unavailable
0xC004C012, 0xC004C013, 0xC004C014 Same line, same explanation
0xC0000022 Not on the page

For those codes Microsoft’s advice is patience. Windows activates by itself once the service is back online.

Two digits apart, and a different story. We’d read the screen again first. If it really shows 0xC0000272, give it a day. Our code, with Access is denied around it? Then it’s the local case below, and waiting won’t fix it.

Causes of the 0xC0000022 activation error

Cause Detail
Permissions changed by a tool “Tweakers”, cleaners and unofficial activation tools leave modified rights on system folders
A misread code 0xC0000272 means a busy activation server and clears by itself; 0xC0000022 doesn’t
Security software A suite that guards system files too eagerly
Damaged system files After a failed update or a disk problem
Malware Some of it blocks licensing and update services on purpose
A restore or clone gone wrong Files came back without their original rights

How to fix the 0xC0000022 activation error

Go from harmless to less harmless, and stop when activation works.

  1. Restart the PC and try to activate once. If nothing else looks wrong, try again the next day.
  2. Open Settings, System, Activation and run the troubleshooter.
  3. Open Command Prompt as administrator and start the Software Protection service.
  4. Run the two repair lines, restart and try again.
  5. Pause third-party security software for the test, then run a full scan with Windows Security.
  6. If the trouble began after installing a tool or an update, go back with System Restore to a point before it.
  7. Last resort: reset the PC with “Keep my files”, after a backup.
net start sppsvc
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
slmgr /ato

One more step sits between the repair lines and System Restore. The licensing service keeps its store in a file called tokens.dat, and we’d suspect a damaged copy when this exact code appears. You’d stop the service, rename the file, start the service and reinstall the licence files. Windows writes a fresh store and you’d activate again.

net stop sppsvc
ren %windir%\System32\spp\store\2.0\tokens.dat tokens.bak
net start sppsvc
slmgr /rilc
slmgr /ato
Line What it does
net start sppsvc Starts the Software Protection service and shows whether it can run
DISM /Online /Cleanup-Image /RestoreHealth Repairs the component store behind the system files; Microsoft says to run it before the file check
sfc /scannow Checks protected system files and replaces damaged ones
slmgr /ato Asks for activation
Six numbered safe steps for the 0xC0000022 activation error: restart and troubleshoot, start the Software Protection service, repair system files, check security software, use System Restore and reset as a last resort.
Illustration: the safe steps for 0xC0000022, from harmless to less harmless.

If the first line answers “Access is denied” as well, the diagnosis is confirmed. The service itself is locked out.

The advice we’d leave alone

Search for this code and you’ll find guides that have you take ownership of system files and rewrite their permissions by hand.

Advice in circulation Why we wouldn’t
Taking ownership of the licensing service’s file Users in the same threads report that it didn’t help
Pasting long permission commands from forums One wrong target, and other parts of Windows stop working
Registry permission edits Hard to undo without a backup of the exact key
“Permission reset” tools Unknown software with full system rights

The repair tools and System Restore put original rights back the supported way. A reset does it for everything at once.

A table for the 0xC0000022 activation error comparing safe fixes built into Windows with risky permission changes by hand: examples, risk, effect on rights and how hard they are to undo.
Illustration: built-in repair tools restore rights the supported way, while manual permission changes carry high risk.

After an unofficial activation tool

If the PC ran an unofficial activation tool at some point, that’s the likely source. Modified system files and broken rights on licensing folders are what we’d expect to find.

  • Uninstall the tool and remove its scheduled tasks.
  • Scan with Windows Security.
  • Run the repair lines.

Honestly, on such a PC a clean install is often the shorter road. We cover it in our clean install guide, and a genuine key makes the result last.

Need one? Ours arrive instant to email: Windows 11 Pro and Windows 10 Pro. Where the key goes is in how to activate Windows 11.

Codes it gets confused with

Code What it says
0xC0000022 The licensing service itself was denied access
0xC0000272 The activation server was busy; Windows retries on its own
0x80070005 Your command ran without administrator rights
0xC004F012 The license store is damaged
0xC004F075 The licensing service was stopping
0x80004005 An unspecified failure
0xC0000225 A startup error, not an activation one; it shows on a blue recovery screen before Windows loads

The same value shows up in Office setup as a number in brackets. That case is on our page for Office error 30015-11. Everything else is in the list of Windows 11 activation errors.

Where these steps apply

System Notes
Windows 11 All steps; System Restore sits under System, About, System protection
Windows 10 Same steps; Activation and Recovery sit under Update & Security
Windows Server Same commands; test on a snapshot first
Work devices Leave it to IT

Common mistakes with the 0xC0000022 activation error

  • Treating it like a missing “Run as administrator”.
  • Copying permission commands without knowing what they change.
  • Switching security software off for good.
  • Entering new keys into a service that can’t write anything.
  • Skipping the backup before a reset.

Terms used on this page

Term Meaning
Access denied Windows’ answer when a process lacks the rights for what it asked
Software Protection service The Windows service that handles licensing; short name sppsvc
Permissions The rules that say who may read or change a file or key
Ownership Which account is in charge of a file’s permissions
System Restore A Windows feature that returns system files and settings to an earlier point

FAQ

What does error 0xC0000022 mean during activation?

Access denied. The Software Protection service couldn't reach files or registry entries it needs. Microsoft's activation errors page doesn't list the code. Its busy-server line has 0xC0000272, which looks close and clears by itself. This one doesn't, so we'd go to the built-in repair steps.

How do I fix 0xC0000022?

Restart and run the Activation troubleshooter. Then start the Software Protection service from an administrator prompt and run DISM and then the System File Checker. If a tool caused it, we'd use System Restore.

Is it the same as 0x80070005?

No. With 0x80070005 your own command lacked administrator rights. Here the licensing service itself is locked out, even in an administrator window. The fixes differ.

Should I take ownership of system files to fix it?

We wouldn't. Users who tried it report mixed results, and a wrong permission change can break other parts of Windows. The repair tools and System Restore are the supported way.

Can antivirus software cause 0xC0000022?

It's reported, yes. A suite that guards system files can block the licensing service. We'd pause it for one activation attempt and turn it back on right after.

Does this error say my key is invalid?

No. The service couldn't work at all, so no key was checked. We'd repair the system first. A key problem would show a different code afterwards.

What if nothing helps?

Back up your files and reset the PC with "Keep my files". That restores the original rights everywhere. A digital license comes back by itself once the PC is online again.