电脑成功安装激活Office之后,使用感觉非常是不错。不过电脑出了点问题,要重装系统,之前费力激活的Offic2010看来又要重新激活,而微软好像已经封掉了那种激活方法,怎么办呢?
其实只要在重装电脑之前备份一下信息,就能轻松的实现重装系统之后,导入备份的信息 ,还原即可无需再次激活,以后重装多少次系统也不怕,现将方法分享如下:
一.备份OFFICE 2010 启动信息
成功激活Office 2010 后,分别备份
C:\Program Files\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms
C:\ProgramData\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat
二.还原OFFICE 2010 启动信息
停止 office software protection platform 系统服务;
备份文件还原到原目录;
启用上述服务。
另附:自动备份还原.bat 源*****,将以下代*****另存为".bat" 文件
@ECHO OFF
title Install Office 2010 Activation Info Backup
color fc
cls
echo.
echo.
echo (c) Surda.cn
echo.
echo.
ECHO 1.Backup Office 2010
ECHO 2.Restore Office 2010
echo.
SET Choice=
SET /P Choice= Please Select Option[Enter '1' or '2']:
ECHO.
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%
IF /I '%Choice%'=='1' Goto BackupOffice
IF /I '%Choice%'=='2' Goto RestoreOffice
:BackupOffice
Copy "%PROGRAMFILES%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms" /-Y
Copy "%PROGRAMFILES(x86)%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms" /-Y
Copy %ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat /-Y
echo.
echo Activation Info Backup completed.
Goto End
:RestoreOffice
net stop osppsvc
takeown /f "%PROGRAMFILES%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"
icacls "%PROGRAMFILES%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms" /grant administrators:F /t
del /F /Q "%PROGRAMFILES%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"
copy "%~dp0pkeyconfig-office.xrm-ms" "%PROGRAMFILES%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"
takeown /f "%PROGRAMFILES(x86)%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"
icacls "%PROGRAMFILES(x86)%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms" /grant administrators:F /t
del /F /Q "%PROGRAMFILES(x86)%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"
copy "%~dp0pkeyconfig-office.xrm-ms" "%PROGRAMFILES(x86)%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"
takeown /f "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat"
icacls "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat" /grant administrators:F /t
del /F /Q "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat"
copy "%~dp0tokens.dat" "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat"
takeown /f "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\Cache" /r
icacls "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\Cache" /grant administrators:F /t
rd /s /Q "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\Cache"
net start osppsvc
cscript "%ProgramFiles%\Microsoft Office\Office14\ospp.vbs" /dstatus
cscript "%ProgramFiles(x86)%\Microsoft Office\Office14\ospp.vbs" /dstatus
echo.
echo Activation Info Restore completed.
:End
Pause>nul