症状
请考虑以下情况:
-
在 SharePoint Server 订阅版 场中的一个或多个 Web 应用程序上手动启用反恶意软件扫描接口 (AMSI) 集成,如配置 AMSI 与 SharePoint Server 的集成一文中所述。
在这种情况下,尝试通过运行 SharePoint 产品配置向导、 Upgrade-SPFarm PowerShell cmdlet 或 psconfig.exe -cmd upgrade -inplace b2b命令行操作来触发此安全更新中包含的新升级操作时,会收到以下错误消息:
引发了类型为 Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException 的异常。 其他异常信息:
Microsoft.SharePoint.Upgrade.SPWssWebApplicationSequence 的操作 16.0.44.1 失败。 (EventID:ajywk)
异常:功能“AntimalwareScan” (ID:4cf046f3-38c7-495f-a7da-a1292d32e8e9) 已激活
(EventID:ajywk)
升级 [SPWebApplication 名称=<Web 应用程序名称>] 失败。 (EventID:an59t)
内部异常:功能“AntimalwareScan” (ID:4cf046f3-38c7-495f-a7da-a1292d32e8e9) 已激活
(EventID:an59t)
异常:Microsoft.SharePoint.Upgrade.SPWssWebApplicationSequence 的操作 16.0.44.1 失败。 (EventID:an59t)
(EventID:an59t)
升级计时器作业因异常而退出:Microsoft.SharePoint.Upgrade.SPUpgradeException:Microsoft.SharePoint.Upgrade.SPWssWebApplicationSequence 的操作 16.0.44.1 失败。 --> System.Data.DuplicateNameException:功能“AntimalwareScan” (ID:4cf046f3-38c7-495f-a7da-a1292d32e8e9) 已在范围'<Web 应用程序 URL>'激活。 - 内部异常堆栈跟踪结束 -
原因
出现此问题的原因是,即使已启用该功能,升级操作也会尝试在 Web 应用程序上启用 AMSI 集成功能。
解决方案
若要解决此问题,请安装 2023 年 10 月 10 日更新SharePoint Server 订阅版 (KB5002506)。
更多信息
此问题仅影响SharePoint Server 订阅版。 此问题不会影响 SharePoint Server 2016 和 SharePoint Server 2019。