小编教你Office弹窗提醒怎么彻底解决( 三 )


不同产品的SKU ID是不同的,也就是说Windows 10 企业版和专业版就是两个SKU ID,Office 2019专业增强版和标准版也是两个SKU ID 。至于怎么查看SKU ID,Office的昨天已经讲过了,Windows也可通过一些命令获取,不是这篇文章的重点,以下命令供参考,有问题可在留言区提问 。
获取Office SKU ID :
wmic path SoftwareLicensingProduct where (ApplicationID=‘0ff1ce15-a989-479d-af46-f275c6370663’ and Description like ‘%%KMSCLIENT%%’) get ID /VALUE
获取Windows SKU ID :
wmic path SoftwareLicensingProduct where (ApplicationID=‘55c92734-d682-4d71-983e-d6ec3f16059f’ and Description like ‘%%KMSCLIENT%%’) get ID /VALUE
03方法③:自动修复(批处理)
【小编教你Office弹窗提醒怎么彻底解决】上面介绍的这么复杂,归结于以下几条命令即可完成(将如下内容保存到文本文档,并将“.txt”修改为“.cmd”,然后以管理员身份运行即可):
@echo offset SKUID=for /f “tokens=2 delims==” %%G in (‘“wmic path SoftwareLicensingProduct where (ApplicationID=’0ff1ce15-a989-479d-af46-f275c6370663‘ and Description like ’%%KMSCLIENT%%‘ and not Description like ’%%Office 15%%‘ and PartialProductKey is not NULL) get ID /VALUE” 2^》nul’) do (if defined SKUID (call set “SKUID=!SKUID! %%G”) else (call set “SKUID=%%G”))for %%# in (%SKUID%) do (reg add “HKLMSOFTWAREMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform0ff1ce15-a989-479d-af46-f275c6370663%%#” /f /v KeyManagementServiceName /t REG_SZ /d “0.0.0.0”)reg add “HKLMSOFTWAREMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform” /f /v KeyManagementServiceName /t REG_SZ /d “0.0.0.0”reg add “HKLMSOFTWAREWOW6432NodeMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform” /f /v KeyManagementServiceName /t REG_SZ /d “0.0.0.0”pause 》nul
清除上述设置的命令如下:
@echo offreg delete “HKLMSOFTWAREMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform0ff1ce15-a989-479d-af46-f275c6370663” /freg delete “HKLMSOFTWAREMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform” /f /v KeyManagementServiceNamereg delete “HKLMSOFTWAREWOW6432NodeMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform” /f /v KeyManagementServiceNamepause 》nul

推荐阅读