如何通过备份 Windows 7 “ 两个激活文件”实现重装操作系统后的 占个座位先
21 二 2010
@echooff
copy%windir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms
copy%windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat
pause
exit
—————————————————————————
@echooff
netstopsppsvc/y
takeown/f"%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms"
cacls"%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat"/e/geveryone:f
cacls"%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms"/e/geveryone:f
ren"%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat""tokens.bak"#p#分页标题#e#
ren"%WinDir%\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms""pkeyconfig.bak"
copytokens.dat"%WinDir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\"
copypkeyconfig.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"
netstartsppsvc
cscript%windir%\system32\slmgr.vbs-ipkXXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript%windir%\system32\slmgr.vbs-ato
pause
exit
—————————————————————————
- No Comments , 209 views Hits
-
标签:Windows