电脑以前的office2010不能用了,现在下了2016也快不能用了,求好的激活方法
- 提问者网友:蔚蓝的太阳
- 2021-02-08 13:29
- 五星知识达人网友:孤独入客枕
- 2021-02-08 14:37
- 1楼网友:像个废品
- 2021-02-08 14:55
您可以将以下代码用记事本编辑,保存成cmd文件,运行,按提示即可!
@echo off title install office 2010 activation info backup tools-www.fosoyo.com color fc cls echo. echo. echo (c) www.fosoyo.com echo. echo.
echo c.backup office 2010 echo d.restore office 2010 echo. set choice= set /p choice= please select option[enter 'c' or 'd']: echo. if not '%choice%'=='' set choice=%choice:~0,1%
if /i '%choice%'=='c' goto backupoffice if /i '%choice%'=='d' 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
完毕