如何备份还原Office 2010激活信息

2024-12-02 03:52:11
推荐回答(1个)
回答1:

安装的win7系统不行了,要重做,首先要做的就是备份win7和office 2010的激活信息,否则以后够你烦的。 首先谈谈office 2010的激活信息的备份还原,其实只要在重装电脑之前备份一下两个文件,就能轻松的实现重装系统之后,导入备份的信息 ,很容易再次激活,以后重装多少次系统也不怕,现将方法分享如下: 一.备份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 Pausenul 你也可以下载我以做好的文件office2010自动备份还原.bat [download id="2"]