Share via

Error 0xc0000022 during Windows activation.

Tahmid 20 Reputation points
2025-07-22T12:28:41.6866667+00:00

Hello,

Recently, I defragmented my entire hard drive (Using a third-party app). However, after defragmenting my Windows, it suddenly got deactivated. The text "Activate Windows" appears on the bottom right of the screen. I tried to activate Windows by re-entering my product key, and it showed error 0xc0000022.

I had done everything I could, but trying to turn on SPPSVC gives Error 5: Access is Denied. Even after taking full ownership of sppsvc.exe. I have scanned the PC with SFC and DISM, and yet no luck. This issue immediately began after the defragmentation and persists in safe mode.

Thanks!

OS: Windows 10 Home Edition x64. Version: 10.0.19045 Build 19045.

Windows for home | Windows 10 | Licensing and activation
0 comments No comments

Answer accepted by question author

Ramesh 176.3K Reputation points Volunteer Moderator
2025-07-25T08:03:31.91+00:00

Sppsvc is unable to create the folder and encounters an access denied error.

Please try the following:

icacls "C:\Windows\System32\spp\store"

md C:\Windows\System32\spp\store\2.0

takeown /f "C:\Windows\System32\spp\store\2.0" /a /r

icacls "C:\Windows\System32\spp\store" /restore C:\Files\Perms.acl

net start sppsvc

Post the output.

Was this answer helpful?


4 additional answers

Sort by: Most helpful
  1. Ramesh 176.3K Reputation points Volunteer Moderator
    2025-07-24T16:27:26.56+00:00

    Please do the following:

    Download perms.acl and save it to a preferred location, say C:\Files

    Open admin Command Prompt and run these commands:

    takeown /f "C:\Windows\System32\spp\store\2.0" /a /r
    
    icacls "C:\Windows\System32\spp\store" /restore  C:\Files\Perms.acl
    
    icacls "C:\Windows\System32\spp\store\2.0"
    
    icacls "C:\Windows\System32\spp\store\2.0\tokens.dat"
    
    net start sppsvc
    

    Post the output here.

    Was this answer helpful?

    2 people found this answer helpful.

  2. Ramesh 176.3K Reputation points Volunteer Moderator
    2025-07-24T04:39:37.75+00:00

    Was this answer helpful?


  3. Alvise C 56,036 Reputation points Volunteer Moderator
    2025-07-23T06:29:32.7033333+00:00

    ok, what is the result of SFC and DISM commands? can you share here?

    Was this answer helpful?


  4. Alvise C 56,036 Reputation points Volunteer Moderator
    2025-07-22T13:06:29.4933333+00:00

    hi tahmid, welcome in community

    open notepad, paste these commands:

    @echo off
    date /t & time /t
    echo Dism /Online /Cleanup-Image /StartComponentCleanup
    Dism /Online /Cleanup-Image /StartComponentCleanup
    echo ...
    date /t & time /t
    echo Dism /Online /Cleanup-Image /RestoreHealth
    Dism /Online /Cleanup-Image /RestoreHealth
    echo ...
    date /t & time /t
    echo SFC /scannow
    SFC /scannow
    date /t & time /t
    pause
    

    Save the file with a name (like SFC-DISM_scan.bat) and append the .bat file extension, now repeatedly run the batch file with admin privilege until it reports no errors.

    then re-try to activate the system

    let me know

    Elvis

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.