Computer >> Hướng Dẫn Máy Tính >  >> Hệ Thống >> Windows

Cách rebuild (tái tạo) file Tokens.dat hoặc Activation Tokens trong Windows 11/10

File Tokens.dat trong hệ điều hành Windows là file được ký số (digitally signed), lưu trữ hầu hết file kích hoạt Windows. Tất cả file cùng có chữ ký số ngăn chặn tokens.dat được thay thế trên máy khác, nếu dùng trên máy khác sẽ yêu cầu kích hoạt online.

Đôi khi file Tokens.dat bị hỏng dẫn đến kích hoạt Windows không thành công. Lúc đó bạn cần khắc phục sự cố kích hoạt Windows. Khi troubleshooting Windows Activation, bạn có thể phải rebuild file Tokens.dat.

Hướng dẫn này chỉ cách rebuild file Tokens.dat trong Windows 11/10/8/7.

Cách rebuild (tái tạo) file Tokens.dat hoặc Activation Tokens trong Windows 11/10

Rebuild file Tokens.dat trong Windows 11/10

File activation tokens cho Windows 11/10/8 thường nằm tại:

C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\WSLicense

Mở Command Prompt nâng cao (elevated) từ menu WinX, gõ lần lượt các lệnh sau. Sau mỗi lệnh nhấn Enter.

net stop sppsvc
cd %windir%\ServiceProfiles\LocalService\AppData\Local\Microsoft\WSLicense
ren tokens.dat tokens.bar
net start sppsvc
cscript.exe %windir%\system32\slmgr.vbs /rilc

Khởi động lại máy tính.

Rebuild file Tokens.dat trong Windows 7

File activation tokens cho Windows 7 thường nằm tại:

C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat

Mở Command Prompt nâng cao và gõ lần lượt các lệnh sau. Sau mỗi lệnh nhấn Enter.

net stop sppsvc
cd %windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform
ren tokens.dat tokens.bar
net start sppsvc
cscript.exe %windir%\system32\slmgr.vbs /rilc

Khởi động lại PC.

Lưu ý: sau khi rebuild Tokens.dat, bạn phải nhập lại product key và kích hoạt lại Windows. Làm như sau: chuột phải Computer > Properties > Change product key. Hoặc gõ lệnh sau trong CMD nâng cao và Enter, theo KB2736303:

cscript.exe %windir%\system32\slmgr.vbs /ipk

Cuối cùng, để xem trạng thái cấp phép Windows, gõ slmgr.vbs /dlv vào thanh tìm kiếm và Enter.

Có cách dễ dàng sao lưu file Activation Tokens của Windows và Office bằng Advanced Tokens Manager nếu bạn cần.

Cách rebuild (tái tạo) file Tokens.dat hoặc Activation Tokens trong Windows 11/10