Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

備份 Windows 7 兩大激活檔案,重裝系統後免序號自動激活

編輯:Windows 7 系統介紹

使用 MAK 金鑰或「神 Key」聯網啟動 Windows 7 企業版/專業版/旗艦版,雖然當下有效,但重裝系統後往往需重新啟動。透過備份兩個核心啟動檔案,配合自製批次檔,即可在離線環境下實現重裝後自動啟動。

核心檔案

  • %windir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms
  • %windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat

自製兩支批次檔

1. 備份啟動檔案.bat

@echo off
copy %windir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms
copy %windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat
pause
exit

2. 還原啟動檔案.bat

@echo off
net stop sppsvc /y
takeown /f "%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms"
cacls "%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat" /e /g everyone:f
cacls "%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms" /e /g everyone:f
ren "%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat" "tokens.bak"
ren "%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms" "pkeyconfig.bak"
copy tokens.dat "%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\"
copy pkeyconfig.xrm-ms "%WinDir%\System32\spp\tokens\pkeyconfig\"
del "%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.bak"
del "%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.bak"
net start sppsvc
cscript %windir%\system32\slmgr.vbs -ipk YOUR-PRODUCT-KEY
cscript %windir%\system32\slmgr.vbs -ato
pause
exit

注意:將 YOUR-PRODUCT-KEY 替換為原本啟動使用的產品金鑰。

操作流程

  1. 將兩支 .bat 放在同一資料夾,以「系統管理員身分執行」備份檔,取得兩個檔案備份。
  2. 重裝系統後,**斷網**狀態下,以系統管理員身分執行還原檔,即可自動完成啟動。

關鍵提醒

  • 資料夾選項取消「隱藏已知副檔名」,另存時選「所有檔案」,副檔名必須為 .bat。
  • 備份時須以系統管理員身分執行;若失敗可嘗試安全模式或啟用內建 Administrator 帳號。
  • 兩個備份檔**不可移動**,必須與還原批次檔放在同一目錄,否則還原失效。
本文僅供技術研究,請尊重智慧財產權,使用正版授權。
Copyright © Windows教程網 All Rights Reserved