備份 Windows 7 key 啟用檔案 實現重裝自行啟用的批處理

來源:互聯網
上載者:User
如何通過備份Windows 7“兩個啟用檔案”實現重裝作業系統後的自行啟用呢?以下向大家提供:(一)關於兩個“批處理”檔案製作:  1。備份啟用檔案“批處理”  ---------------------------------------------------------------------------  @echo off  copy %windir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms  copy %windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat  ---------------------------------------------------------------------------  ——將以上紅色劃線部分內字元複製/粘貼到記事本,另存新檔“備份啟用檔案.bat”即可。  2。恢複啟用檔案“批處理”  ---------------------------------------------------------------------------  @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 XXXXX-XXXXX-XXXXX-XXXXX-XXXXX  cscript %windir%\system32\slmgr.vbs -ato  ---------------------------------------------------------------------------  ——將以上紅色劃線部分內字元複製/粘貼到記事本,用啟用該系統時所使用的密鑰替換其中的XXXXX-XXXXX-XXXXX-XXXXX-XXXXX,另存新檔“恢複啟用檔案.bat”即可。  (二)關於兩個“批處理”檔案使用:  第一,將以上兩個批次檔放到任意磁碟的同一檔案夾。以管理員身份運行“備份啟用檔案.bat”,即可得到兩個啟用檔案的備份。  第二,重裝作業系統後,在斷網情況下(注意:不要接通),以管理員身份運行“恢複啟用檔案.bat”,即可實現作業系統的自行啟用。還有一種方法,手動的方法本機WIN KEY查看  C:WindowsSystem32spptokenspkeyconfigpkeyconfig.xrm-ms   C:WindowsServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatformtokens.dat   C:WindowsServiceProfilesNetworkServiceAppDataRoamingMicrosoftSoftwareProtectionPlatformCachecache.dat1,備份以上三個檔案,同時儲存好啟用CD-KEY(注意:appdata是隱藏的檔案夾) appdata是隱藏的檔案夾) 2,以後再重裝系統,不必輸入CD-KEY,也不要連網,找到上面的三個檔案,右鍵點屬性——安全——進階——所有者,修改為 administrator,關閉視窗,再重新選擇進階——許可權,修改amdinistator為完全控制,這樣就可以刪除了。 3,把管理工具-服務中Software Licensing服務關掉,用備份的啟用檔案替換上面的三個檔案(如不關掉服務,tokens.dat無法替換. 4,替換後一定要把管理工具-服務中Software Licensing服務開啟 ,再重啟電腦5,重啟電腦,不串連網路,輸入啟用號,(在運行中鍵入SLMGR.VBS -ipk 你的啟用序號) 過一會就啟用了。或者斷網情況下電腦右鍵屬性 輸入KEY 也成
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.