office 2010密钥自动备份与还原

2013年3月18日21:44:53系统教程2684

电脑安装的Microsoft Office Professional Plus 2010简体中文版,采用的是电话激活。但现在要重装系统,到时候又得给微软打电话激活office多麻烦(并且再次打电话时候不移动可以激活,因为上次激活的时候微软已经记录了电脑的硬件信息)。所以现在找了个备份与还原Microsoft Office Professional Plus 2010 简体中文版激活信息的批处理。文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

代码如下:文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

@ECHO OFF文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

title  Install Office 2010 Activation Info Backup Tools-www.oblue.net文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

color fc文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

cls文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

echo.文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

echo.文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

echo (c) www.oblue.net文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

echo.文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

echo.文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

ECHO C.Backup Office 2010文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

ECHO D.Restore Office 2010文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

echo.文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

SET Choice=文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

SET /P Choice=         Please Select Option[Enter 'C' or 'D']:文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

ECHO.文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

IF /I '%Choice%'=='C' Goto BackupOffice文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

IF /I '%Choice%'=='D' Goto RestoreOffice文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

:BackupOffice文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

Copy  "%PROGRAMFILES%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"  /-Y文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

Copy  "%PROGRAMFILES(x86)%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"  /-Y文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

Copy  %ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat  /-Y文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

echo.文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

echo Activation Info Backup completed.文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

Goto End文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

:RestoreOffice文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

net stop osppsvc文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

takeown /f "%PROGRAMFILES%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

icacls "%PROGRAMFILES%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms" /grant administrators:F /t文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

del /F /Q "%PROGRAMFILES%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

copy "%~dp0pkeyconfig-office.xrm-ms" "%PROGRAMFILES%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

takeown /f "%PROGRAMFILES(x86)%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

icacls "%PROGRAMFILES(x86)%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms" /grant administrators:F /t文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

del /F /Q "%PROGRAMFILES(x86)%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

copy "%~dp0pkeyconfig-office.xrm-ms" "%PROGRAMFILES(x86)%\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

takeown /f "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat"文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

icacls "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat" /grant administrators:F /t文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

del /F /Q "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat"文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

copy "%~dp0tokens.dat" "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat"文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

takeown /f "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\Cache" /r文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

icacls "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\Cache" /grant administrators:F /t文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

rd /s /Q "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\Cache"文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

net start osppsvc文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

cscript "%ProgramFiles%\Microsoft Office\Office14\ospp.vbs" /dstatus文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

cscript "%ProgramFiles(x86)%\Microsoft Office\Office14\ospp.vbs" /dstatus文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

echo.文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

echo Activation Info Restore completed.文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

:End文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

Pause>nul文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

喜欢的朋友也可以研究一下每句话的意思,批处理的下载地址:猛击我文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

推荐阅读:手动备份、还原office 2010 密钥文章源自堕落的鱼-https://www.duoluodeyu.com/823.html

匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定

评论:2   其中:访客  1   博主  1
    • hostgator
      hostgator 0

      好有深度的文章,不是太懂,学习学习

      • happywanglu
        happywanglu

        不需要懂得,留着使用的时候直接用就可以了。