Skip to content

Windows license activation problem

Instructions: https://learn.microsoft.com/en-us/troubleshoot/windows-server/licensing-and-activation/rebuild-tokens-dotdat-file

Rebuild the Tokens.dat file

  1. Open an elevated command prompt:
    1. Open Start menu or Start screen, search cmd or powershell.
    2. Right click Command Prompt in the search results, and select Run as administrator.
  2. Type the following commands in the order in which they're presented. Press Enter after each command.
    1. For Windows Server 2008 R2 and later
    2. net stop sppsvc
    3. For Windows 10, Windows Server 2016 and later versions of Windows:
    4. cd Windows\system32\spp\store\2.0
    5. ren tokens.dat tokens.bar
    6. net start sppsvc
    7. cscript.exe %windir%\system32\slmgr.vbs /rilc or run in this location PS C:\Windows\System32> .\cscript.exe slmgr.vbs /rilc
  3. Restart the computer twice (optionally), started to work without restarting computer