OFFICE 2013的OSPP模块 详细绿化激活特别教程

激活是绿化OFFICE 2013的一大难题,尤其是在Win7(NT6.1及以下系统)下。
对于Win7系统,激活OFFICE 2013,有一个必须的条件:OSPPSvc服务,请看下图:
OFFICE 2013的OSPP模块 详细绿化激活特别教程
这个服务的启动类型为“手动”,所以登录系统后它会处于未启动状态,这是正常的。当你打开OFFICE任意组件时,它会启动这个服务。

下面简单的讲述一下添加OSPPSvc服务的过程,这些描述基于另一篇文章:OFFICE 2013 4in1绿色精简准全功能版

1、需要的相关文件(在SPP文件夹下)
对应于32位系统:OSPP_X86.7z,对应于64位系统:OSPP_X64.7z、OSPP_X64_(X86).7z
2、需要的相关注册表项(在SPP文件夹下):OSPP.re_
3、用SC命令添加OSPPSvc服务等,从上述文章附件中提取的代码如下(摘录自2013_CONFIG_xxx_X64.CMD):
:OSPP

ECHO.
COPY "%CD%\SPP\OSPP.re_" "%CD%\SPP\OSPP.reg" /y
SET OSPPPath=%ProgramFiles:\=\\%
FR.exe "%CD%\SPP\OSPP.reg" -fic:"C:\\Program Files\\" -t:"%OSPPPath%\\"
REGEDIT.exe /s "%CD%\SPP\OSPP.reg"
DEL /f /q "%CD%\SPP\OSPP.reg"

IF /i %ARCH%==X64 (
    7za.exe x -y "%CD%\SPP\OSPP_X64.7z" -o"%CommonProgramFiles%\Microsoft Shared"
    7za.exe x -y "%CD%\SPP\OSPP_X64_(X86).7z" -o"%CommonProgramFiles(x86)%\Microsoft Shared"
) ELSE (
    7za.exe x -y "%CD%\SPP\OSPP_X86.7z" -o"%CommonProgramFiles%\Microsoft Shared"
)

Mofcomp.exe "%CommonProgramFiles%\Microsoft Shared\OfficeSoftwareProtectionPlatform\OSPPWMI.MOF"
REGSVR32.exe /s "%CommonProgramFiles%\Microsoft Shared\OfficeSoftwareProtectionPlatform\OSPPWMI.dll"

NET.exe stop SPPSVC >nul 2>nul
IF NOT EXIST "%AllUsersProfile%\Microsoft\OfficeSoftwareProtectionPlatform" MD "%AllUsersProfile%\Microsoft\OfficeSoftwareProtectionPlatform"
IF NOT EXIST "%AllUsersProfile%\Microsoft\OfficeSoftwareProtectionPlatform\Cache" MD "%AllUsersProfile%\Microsoft\OfficeSoftwareProtectionPlatform\Cache"
COPY "%CD%\SPP\OSPP_cache.dat" "%AllUsersProfile%\Microsoft\OfficeSoftwareProtectionPlatform\Cache\cache.dat" /y
COPY "%CD%\SPP\OSPP_tokens.dat" "%AllUsersProfile%\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat" /y

SC.exe stop osppsvc >nul 2>nul
SC.exe delete osppsvc >nul 2>nul
SC.exe create osppsvc start= DEMAND obj= "NT AUTHORITY\NetworkService" Binpath= "%CommonProgramFiles%\Microsoft Shared\OfficeSoftwareProtectionPlatform\OSPPSVC.exe" DisplayName= "Office Software Protection Platform" Depend= RpcSs
SC.exe Description osppsvc "Enables the download, installation, and enforcement of digital licenses for Microsoft Office applications. These applications require this service for proper operation. It is strongly recommended that you keep this service enabled."
SC.exe sdset osppsvc "D:(A;;CCLCSWRPLO;;;NS)(A;;CCLCSWRPLO;;;IU)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)"