也许可能是这个玩意的问题,方便的话把这里面涉及的文件打个包 ,datacenter x64 r2的
@ECHO OFF
title Install Win7/Srv 08 R2 Activation Info Backup Tools
color fc
cls
echo.
echo.
echo (c) Developer@Live.IT
echo.
echo.
ECHO A.Backup
ECHO B.Restore
echo.
SET Choice=
SET /P Choice= Please Select Option[Enter 'A' Or 'B']:
ECHO.
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%
IF /I '%Choice%'=='A' Goto Backup
IF /I '%Choice%'=='B' Goto Restore
:Backup
Copy %SystemDrive%\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat .\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\ /-Y
Copy %SystemDrive%\Windows\SysWOW64\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms .\Windows\SysWOW64\spp\tokens\pkeyconfig\ /-Y
Copy %SystemDrive%\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms .\Windows\System32\spp\tokens\pkeyconfig\ /-Y
Set SN=
SET /P SN= Please Enter Currently Install Serial Nnumber:
echo %SN%>SN.DAT
echo.
echo Activation Info Backup completed.
Goto End
:Restore
net stop sppsvc
takeown /f "%SystemDrive%\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms"
icacls "%SystemDrive%\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms" /grant administrators:F
takeown /f "%SystemDrive%\Windows\SysWOW64\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms"
icacls "%SystemDrive%\Windows\SysWOW64\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms" /grant administrators:F
takeown /f "%SystemDrive%\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat"
icacls "%SystemDrive%\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat" /grant administrators:F
takeown /f "%SystemDrive%\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat" >nul 2>&1
icacls "%SystemDrive%\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat" /grant administrators:F >nul 2>&1
Copy .\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat %SystemDrive%\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\ /y
Copy .\Windows\SysWOW64\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms %SystemDrive%\Windows\SysWOW64\spp\tokens\pkeyconfig\ /y
Copy .\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms %SystemDrive%\Windows\System32\spp\tokens\pkeyconfig\ /y
for /f "tokens=1,2 delims==" %%a in (SN.DAT) do (set SN=%%a )
slmgr.vbs /ipk %SN%
echo.
echo Activation Info Restore completed.
:End
Pause>nul