Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.


Consider the following scenario:

In this scenario, when you try to trigger the new upgrade actions included in this security update by running the SharePoint Products Configuration Wizard, the Upgrade-SPFarm PowerShell cmdlet, or the psconfig.exe -cmd upgrade -inplace b2b command line operation, you receive the following error message:

An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown.  Additional exception information:

Action of Microsoft.SharePoint.Upgrade.SPWssWebApplicationSequence failed.      (EventID:ajywk)

Exception: Feature 'AntimalwareScan' (ID: 4cf046f3-38c7-495f-a7da-a1292d32e8e9) is already activated


Upgrade [SPWebApplication Name=<Web Application Name>] failed. (EventID:an59t)

Inner Exception: Feature 'AntimalwareScan' (ID: 4cf046f3-38c7-495f-a7da-a1292d32e8e9) is already activated


Exception: Action of Microsoft.SharePoint.Upgrade.SPWssWebApplicationSequence failed.      (EventID:an59t)


Upgrade Timer job is exiting due to exception: Microsoft.SharePoint.Upgrade.SPUpgradeException: Action of Microsoft.SharePoint.Upgrade.SPWssWebApplicationSequence failed. ---> System.Data.DuplicateNameException: Feature 'AntimalwareScan' (ID: 4cf046f3-38c7-495f-a7da-a1292d32e8e9) is already activated at scope '<Web Application URL>'.   --- End of inner exception stack trace ---


This issue occurs because the upgrade action tries to enable the AMSI integration feature on web applications even if the feature is already enabled.


To fix this issue, install October 10, 2023, update for SharePoint Server Subscription Edition (KB5002506).

More information

This issue affects only SharePoint Server Subscription Edition. SharePoint Server 2016 and SharePoint Server 2019 are not affected by this issue.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!