(一)關(guān)于兩個(gè)“批處理”文件制作:
1。備份激活文件“批處理”
---------------------------------------------------------------------------
@echo off
copy %windir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms
copy %windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatfo
pause
exit
---------------------------------------------------------------------------
——將以上紅色字符復(fù)制/粘貼到記事本,另存為“備份激活文件.bat”即可。
2。恢復(fù)激活文件“批處理”
---------------------------------------------------------------------------
@echo off
net stop sppsvc /y
takeown /f "%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms"
cacls "%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatfo
cacls "%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms" /e /g everyone:f
ren "%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatfo
ren "%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms" "pkeyconfig.bak"
copy tokens.dat "%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatfo
copy pkeyconfig.xrm-ms "%WinDir%\System32\spp\tokens\pkeyconfig"
del "%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatfo
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
pause
exit
---------------------------------------------------------------------------
——將以上紅色字符復(fù)制/粘貼到記事本,用激活該系統(tǒng)時(shí)所使用的密鑰替換其中的XXXXX-XXXXX-XXXXX-XXXXX-XXXXX,另存為“恢復(fù)激活文件.bat”即可。
(二)關(guān)于兩個(gè)“批處理”文件使用:
友情提示:
本文轉(zhuǎn)自百度翱翔博客:http://hi.baidu.com/guoguo6688/blog/item/ea330f7a4be5a8e72e73b3ec