按“win+R”,打开运行,输入“regedit”,确定即可打开注册表编辑器。依次打开HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform,右键-新建-DWORD(32-位)值(D),命名为“InactivityShutdownDelay”(不包括引号)。如下图所示
双击上一步建立的dword值,基数选择十进制或者十六进制都可以,如果选择了十进制,数值数据可以填写“10”,如果选择了十六进制,可以填写“a”。数值数据中的数字表示,在所有的Office程序退出之后自动终止osppsvc.exe进程的等候时间,单位是”秒“。建议不要设定为10以下的数字,否则在某些情况下可能会引起问题。
设定完毕后,确定即可。关闭注册表编辑器。
重启一下osppsvc服务
重启一下osppsvc服务
重启一下osppsvc服务
这是重点好多地方都没有说明这个,重启这个服务后,才会重载刚才的配置。老外的英文原帖是有提的。
现在可以把所有的office软件退出后,再打开,关闭。看看10秒钟后这个进程是不是自己就退了。
英文原帖:
The Office Software Protection Platform service is generally started on demand when a user has started Office, however, there are license types which can start the service otherwise (such as those using a Key Management Server). As for stopping the service, there are several reasons we do not automatically shut down the service by default. These reasons are based on Office's cross OS version compatibility, communications from our users about their Office usage profile, preferences, resource usage profile, and differing ways in utilizing the service between Office and Windows.
That said, while we do not default our service to timing out after inactivity, if this is something your organization values, you have the ability to control this. You may set the following registry key:
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform
ValueName: InactivityShutdownDelay
ValueType: DWORD
ValueData: The number in seconds, that the Office Software Protection Platform will stay running for, after the most recent activity. The windows default for this is 300 seconds.
After setting this key, simply restart the Office Software Protection Platform Service to use the new settings.